MCPcopy Index your code
hub / github.com/RustPython/RustPython / _DeprecatedGenericAlias

Class _DeprecatedGenericAlias

Lib/typing.py:1600–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598
1599
1600class _DeprecatedGenericAlias(_SpecialGenericAlias, _root=True):
1601 def __init__(
1602 self, origin, nparams, *, removal_version, inst=True, name=None
1603 ):
1604 super().__init__(origin, nparams, inst=inst, name=name)
1605 self._removal_version = removal_version
1606
1607 def __instancecheck__(self, inst):
1608 import warnings
1609 warnings._deprecated(
1610 f"{self.__module__}.{self._name}", remove=self._removal_version
1611 )
1612 return super().__instancecheck__(inst)
1613
1614
1615class _CallableGenericAlias(_NotIterable, _GenericAlias, _root=True):

Callers 1

typing.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected