## Summary Porting infer tests to new markdown tests framework. Link to the corresponding issue: #13696 --------- Co-authored-by: Carl Meyer <carl@astral.sh>
275 B
275 B
Classes shadowing
Implicit error
class C: pass
C = 1 # error: "Implicit shadowing of class `C`; annotate to make it explicit if this is intentional"
Explicit
No diagnostic is raised in the case of explicit shadowing:
class C: pass
C: int = 1