Skip to content
Prev Previous commit
Next Next commit
Rename to _type_checker_internals
  • Loading branch information
srittau committed Apr 15, 2025
commit f57d9f5d1256cbc75fe4c4627062f803cd726bda
8 changes: 4 additions & 4 deletions stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class TypeVar:
def has_default(self) -> bool: ...

# Used for an undocumented mypy feature. Does not exist at runtime.
# Obsolete, use _typeshed._tc_internals.promote instead.
# Obsolete, use _typeshed._type_checker_internals.promote instead.
_promote = object()

# N.B. Keep this definition in sync with typing_extensions._SpecialForm
Expand Down Expand Up @@ -532,7 +532,7 @@ class Coroutine(Awaitable[_ReturnT_nd_co], Generic[_YieldT_co, _SendT_nd_contra,

# NOTE: This type does not exist in typing.py or PEP 484 but mypy needs it to exist.
# The parameters correspond to Generator, but the 4th is the original type.
# Obsolete, use _typeshed._tc_internals.AwaitableGenerator instead.
# Obsolete, use _typeshed._type_checker_internals.AwaitableGenerator instead.
@type_check_only
class AwaitableGenerator(
Awaitable[_ReturnT_nd_co],
Expand Down Expand Up @@ -903,7 +903,7 @@ if sys.version_info >= (3, 11):

# Type constructors

# Obsolete, will be changed to a function. Use _typeshed._tc_internals.NamedTupleFallback instead.
# Obsolete, will be changed to a function. Use _typeshed._type_checker_internals.NamedTupleFallback instead.
class NamedTuple(tuple[Any, ...]):
_field_defaults: ClassVar[dict[str, Any]]
_fields: ClassVar[tuple[str, ...]]
Expand All @@ -928,7 +928,7 @@ class NamedTuple(tuple[Any, ...]):

# Internal mypy fallback type for all typed dicts (does not exist at runtime)
# N.B. Keep this mostly in sync with typing_extensions._TypedDict/mypy_extensions._TypedDict
# Obsolete, use _typeshed._tc_internals.TypedDictFallback instead.
# Obsolete, use _typeshed._type_checker_internals.TypedDictFallback instead.
@type_check_only
class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
__total__: ClassVar[bool]
Expand Down