-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task & TaskInfo datetime consistency #661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Importing datetime
should fix the current test failures.
from datetime import datetime
There is a chance there will be mypy errors after making this change so I would suggest running both the test suite and mypy after making the change to see if anything comes up.
@sanders41 So how do I decide whether a given argument is going to be |
I used a combination of the docs and looking at the output to figure it all out. If helpful I have all this setup here. |
Co-authored-by: Paul Sanders <psanders1@gmail.com>
@sanders41 Should I remove |
Unfortunately it's not a completely straight forward answer. The TLDR is any @alallema I'll put the reason below to get your input.
The other thing Currently |
Understood |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Azanul for this PR! And thanks, @sanders41, for your reviews, your explanations and for taking care of this repo 😊 ❤️
LGTM! 🎉
bors merge |
678: Update version for the next release (v0.24.0) r=alallema a=alallema This version makes this package compatible with Meilisearch v1.0.0 🎉 Check out the changelog of [Meilisearch v1.0.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0) for more information on the changes(#635). ##⚠️ Breaking changes * Make the usage of the module typing consistent (#625) `@pbrochar` * Put all dates to `datetime` type for consistency. Class impacted: `Task` and `TasInfo` (#661) `@Azanul` * Change `details` fields in `Task` class `Dict[str, Any]` -> `Union[Dict[str, Any], None]` (#664) `@Azanul` ## 🚀 Enhancements * Added `update_documents_csv(str_documents: str, primary_key: Optional[str] = None) -> TaskInfo` (#654) `@sajdakabir` ## 🐛 Bug Fixes * Include py.typed in package build (#637) `@sanders41` Thanks again to `@Azanul,` `@alallema,` `@pbrochar,` `@sajdakabir,` `@sanders41!` 🎉 Co-authored-by: alallema <amelie@meilisearch.com>
Pull Request
Related issue
Fixes #615
What does this PR do?
datetime
type consistency across the SDKPR checklist
Please check if your PR fulfills the following requirements: