Repository navigation
Reduce use of Any in builtins - #6292
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.
srittau
left a comment
There was a problem hiding this comment.
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.
srittau
left a comment
There was a problem hiding this comment.
A few more remarks below. The rest LGTM.
This comment has been minimized.
This comment has been minimized.
|
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
Anyin builtins. A little experimental; this will likely be revised based on the output from mypy primer.