-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
TYP: enable reportGeneralTypeIssues for more files #54423
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
Conversation
| pythonVersion = "3.10" | ||
| pythonVersion = "3.11" | ||
| typeCheckingMode = "basic" | ||
| useLibraryCodeForTypes = false |
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.
To prevent pyright from analyzing non-py.typed libraries such as matplotlib
| if is_iterator(keys): | ||
| keys = list(keys) | ||
| if is_iterator(objs): | ||
| objs = list(objs) |
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.
This if should not be needed as objs was always a list at that point - let's see whether the tests agree.
rhshadrach
left a comment
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.
lgtm, but I'm not really familiar with the time-series related changes. Would be good to have another eye here @MarcoGorelli
|
Thanks @twoertwein |
* TYP: enable reportGeneralTypeIssues for more files * fixes * Added some time-related annotations based on the tests from pandas-stubs * remove python version from second pyright config file
Most changes are in io/excel but also in files where pyright had one or two violates to get those files off the list.