Skip to content

Commit bf89ae1

Browse files
committed
Use TypeIs for TypedDict
1 parent 6246a38 commit bf89ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/typing.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from types import (
2121
TracebackType,
2222
WrapperDescriptorType,
2323
)
24-
from typing_extensions import Never as _Never, ParamSpec as _ParamSpec
24+
from typing_extensions import Never as _Never, ParamSpec as _ParamSpec, TypeIs as _TypeIs
2525

2626
if sys.version_info >= (3, 9):
2727
from types import GenericAlias
@@ -1013,7 +1013,7 @@ class ForwardRef:
10131013
def __ror__(self, other: Any) -> _SpecialForm: ...
10141014

10151015
if sys.version_info >= (3, 10):
1016-
def is_typeddict(tp: object) -> bool: ...
1016+
def is_typeddict(tp: object) -> _TypeIs[type[_TypedDict]]: ...
10171017

10181018
def _type_repr(obj: object) -> str: ...
10191019

0 commit comments

Comments
 (0)