@@ -6,7 +6,7 @@ from collections.abc import AsyncGenerator, Callable, Sequence
66from io import TextIOWrapper
77from types import FrameType , ModuleType , TracebackType
88from typing import Any , Final , Literal , NoReturn , Protocol , TextIO , TypeVar , final , type_check_only
9- from typing_extensions import LiteralString , TypeAlias
9+ from typing_extensions import LiteralString , TypeAlias , deprecated
1010
1111_T = TypeVar ("_T" )
1212
@@ -335,7 +335,14 @@ class _version_info(_UninstantiableStructseq, tuple[int, int, int, _ReleaseLevel
335335version_info : _version_info
336336
337337def call_tracing (func : Callable [..., _T ], args : Any , / ) -> _T : ...
338- def _clear_type_cache () -> None : ...
338+
339+ if sys .version_info >= (3 , 13 ):
340+ @deprecated ("Deprecated in Python 3.13; use _clear_internal_caches() instead." )
341+ def _clear_type_cache () -> None : ...
342+
343+ else :
344+ def _clear_type_cache () -> None : ...
345+
339346def _current_frames () -> dict [int , FrameType ]: ...
340347def _getframe (depth : int = 0 , / ) -> FrameType : ...
341348def _debugmallocstats () -> None : ...
0 commit comments