| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…same name as type alias work on python#5425
There was a problem hiding this comment.
Thanks, can we use UninhabitedType instead of NoneType?
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
Since we used NoneType previously in the same function, this seem fine to me. We don't actually seem to perform any interesting type operations on the type, unless it's a function type. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! Looks good to me.
Sorry, something went wrong.
…same name as type alias (python#13015) Work on python#5425 Co-authored-by: Wesley Wright <wesleyw@dropbox.com>
| Back | FazBrowse Home | New Git URL |
Description
Fixes #5425.
Typechecking for method overrides ended in an assert False for any AST nodes other than FuncDef, OverloadedFuncDef, Decorator, and Var. This PR replaces this with a typecheck error for any unrecognized AST nodes instead.
Test Plan
Added a new test case to check-classes.test covering the original bug report from the example, as well as some extra cases that Jukka mentioned in the comments.