-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
weird typeguard behavior in inspect.getmembers
when disallow-any-expr
is enabled
#16025
Comments
Oh wow, this is quite tricky. The first realization to understand is that For example, lst: list[int] = [1, 2, 3]
lst.sort(key=lambda a: a) I think it's basically issue #5879. Now, The weird There's many things to tackle here but maybe start with
|
I think #12729 would fix this |
Minified - (🐞) Incorrect overload matching with lambda expression and
|
|
closing in favor of #16186 |
playground
if i disable
disallow-any-expr
, thearg-type
error goes away and the type ofmethod
changes frombool
toAny
i don't think
disallow-any-expr
should change how types are inferred, or cause any new errors other thanExpression type contains "Any"
The text was updated successfully, but these errors were encountered: