| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Fixes python#9615, fixes python#9682 Both issue reports hit the faulty cast on L2803. This changes the logic so that that cast is actually always true. If not, we just end up doing whatever the fallback else clause does; this resulted in behaviour that matched what I expected. After that, the python#9682 hit another crash in checker.py, where var.node was None instead of a Var. It seemed reasonable to just branch instead.
| x = 0 # E: Incompatible types in assignment (expression has type "int", variable has type "str") | ||
|
|
||
|
|
||
| [case testRedefineModuleAsException] |
There was a problem hiding this comment.
Note that if you run this in real life you get:
crash.py:5: error: Incompatible types in assignment (expression has type "Exception", variable has type Module) Found 1 error in 1 file (checked 1 source file)
I think the fixtures just aren't up to scratch here.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good! Thanks for fixing these crashes.
Sorry, something went wrong.
Fixes #9615, fixes #9682 Both issue reports hit the faulty cast on L2803. This changes the logic so that that cast is actually always true. If not, we just end up doing whatever the fallback else clause does; this resulted in behaviour that matched what I expected. After that, the #9682 hit another crash in checker.py, where var.node was None instead of a Var. It seemed reasonable to just branch instead. Co-authored-by: hauntsaninja <>
| Back | FazBrowse Home | New Git URL |
Fixes #9615, fixes #9682
Both issue reports hit the faulty cast on L2803. This changes the logic
so that that cast is actually always true. If not, we just end up doing
whatever the fallback else clause does; this resulted in behaviour that
matched what I expected.
After that, the #9682 hit another crash in checker.py, where var.node
was None instead of a Var. It seemed reasonable to just branch instead.