New semantic analyzer: refactor analysis of assignments #6412
Labels
priority-1-normal
refactoring
Changing mypy's internals
semantic-analyzer
Problems that happen during semantic analysis
This is a follow-up for #6390
Assignment statements can create a bunch of different symbol nodes:
Because of this current implementation is messy and has some hacks. We should refactor this to happen in two steps:
The tricky corner case is enums:
c = Color['Red']
looks like a type alias, but this should create a variable.The text was updated successfully, but these errors were encountered: