| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks for the fix!
I think this kind of implicit logic should be documented somewhere in mypy docs, otherwise LGTM.
Sorry, something went wrong.
| pass | ||
|
|
||
| reveal_type(A()) # N: Revealed type is 'builtins.int' | ||
| reveal_type(A()) # N: Revealed type is '__main__.A' |
There was a problem hiding this comment.
I think we should keep the declared return type for the class itself. The original PR closed an issue called "Honor return type of __new__", so this change would be a step back.
Sorry, something went wrong.
There was a problem hiding this comment.
We report an error at the __new__ declaration site, and there are a bunch of other situations where we wouldn't honor it before (like if it is a union or something other than an instance or tuple), so I think this actually makes thing a little more consistent.
Sorry, something went wrong.
|
thanks! it worked however i found another problem with popen inheritance, i am posting an issue right now |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #7597.