-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Reduce use of Any
in builtins
#6292
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reverting the change to |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ditto for |
This comment has been minimized.
This comment has been minimized.
Ditto for |
This comment has been minimized.
This comment has been minimized.
Ditto for |
This comment has been minimized.
This comment has been minimized.
Ditto for |
This comment has been minimized.
This comment has been minimized.
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.
I like the general idea of this PR. I noticed one thing below and will comment in more depth, once you've whittled down the primer output and mark this as ready to review.
This comment has been minimized.
This comment has been minimized.
Ditto for |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Not sure what's going on in pytest (affected code is here: https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L290). Maybe mypy just reordered its module processing for some reason. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Would've been weird to have eval() return Any and exec() return object.
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.
A few more remarks below. The rest LGTM.
This comment has been minimized.
This comment has been minimized.
… into cut-down-anys
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
As discussed [here](python#6292 (comment)) (cc: @JelleZijlstra)
Reverts regressions introduced by python#6292. Fixes python#6661.
An attempt to reduce the use of
Any
in builtins. A little experimental; this will likely be revised based on the output from mypy primer.