Repository navigation
Feature Request: diagnostic for a variable that is implicitly Any. #5496
TheDreadedAndy
started this conversation in
Ideas
Replies: 1 comment
|
This is already implemented and will be in the next pyrefly release! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sometimes, especially when working with numpy, variables can be implicitly inferred to have the value of any. For example:
Having variables which are implicitly can hide errors that would have otherwise been found. Another consequence of this is that if this happens to an object that has methods on it, and you try to browse those references, usage through an implicit Any won't show up.
Since there is already, e.g., an
implicit-any-parametersetting, it would be nice if there were something likeimplicit-any-variable.All reactions