module documentation
(source)

A shared state for all TypeInfos that holds global cache and dependency information, and potentially other mutable TypeInfo state. This module contains mutable global state.
Class ​Type​State This class provides subtype caching to improve performance of subtype checks. It also holds protocol fine grained dependencies.
Function reset​_global​_state Reset most existing global state.
Variable ​Subtype​Cache Undocumented
Variable ​Subtype​Kind Undocumented
Variable ​Subtype​Relationship Undocumented
def reset_global_state(): (source)

Reset most existing global state.

Currently most of it is in this module. Few exceptions are strict optional status and and functools.lru_cache.

SubtypeCache: _TypeAlias = (source)

Undocumented

SubtypeKind: _TypeAlias = (source)

Undocumented

SubtypeRelationship: _TypeAlias = (source)

Undocumented