Repository navigation
Don't crash on aliases like C = C - #5632
Conversation
|
Could you add a test that ensures that if module a has |
| import a | ||
| [file a.py] | ||
| import lib | ||
| x = 1 |
There was a problem hiding this comment.
Thanks! Can you also check that using lib.Exception works here?
There was a problem hiding this comment.
Do you mean in this file? I can add try/except here.
There was a problem hiding this comment.
Yes, in this file. Something like try: ... except lib.Exception:.
I am not sure what you mean by this, but even just |
|
@JelleZijlstra @JukkaL what is the situation here? Are there more comments? |
|
Looks good to me! |
|
I'm happy with the additional tests. |
Fixes #5631
Unfortunately one still needs to use
# type: ignores, mypy has troubles understanding complex conditional definitions like in the issue:But this is a separate problem, that is harder to solve.