## Summary Porting infer tests to new markdown tests framework. Link to the corresponding issue: #13696 --------- Co-authored-by: Carl Meyer <carl@astral.sh>
287 B
287 B
Class defenitions in stubs
Cyclical class definition
In type stubs, classes can reference themselves in their base class definitions. For example, in typeshed, we have class str(Sequence[str]): ....
class C(C): ...
reveal_type(C) # revealed: Literal[C]