class C: ... C = 1 # error: "Implicit shadowing of class `C`; annotate to make it explicit if this is intentional"
No diagnostic is raised in the case of explicit shadowing:
class C: ... C: int = 1