-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Fix to_dict and from_dict type stubs #39
Conversation
There seems to be a difference between the |
The stubs here evolved from work done by Microsoft. These stubs try to match what is in the pandas source (and there is more work to do to make that happen). The VirtusLab stubs were done independently, but after discussion between them, Microsoft and the pandas team, we went forward with the Microsoft stubs as they were more complete. In the case of Having said that, can you add a test for this change in Also, the title of your PR says you're changing |
I added 'tight' as an acceptable Literal for the |
We're trying to make it that when we add something to the stubs, we also add a code snippet that tests the stub. So, for example, if you have a small piece of code that fails type checking without your change and succeeds with your change, that would be sufficient. |
@KianShah let us know if you intend to complete this PR by adding a test. Thanks. |
Yes sorry, I just got really busy. Will update either today or tomorrow |
I've updated with some tests for |
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.
Now failing due to formatting issues. Do the following on your local machine, until all tests pass. Then make a new commit and push again, and I will trigger the CI
poetry run poe test_all
Ok I've run the pre-commit this time and poe test-all returns all green lights |
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 @KianShah
No description provided.