mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add typing_extensions.is_typeddict (#6923)
This commit is contained in:
@@ -99,7 +99,13 @@ class SupportsIndex(Protocol, metaclass=abc.ABCMeta):
|
||||
|
||||
# PEP 612 support for Python < 3.9
|
||||
if sys.version_info >= (3, 10):
|
||||
from typing import Concatenate as Concatenate, ParamSpec as ParamSpec, TypeAlias as TypeAlias, TypeGuard as TypeGuard
|
||||
from typing import (
|
||||
Concatenate as Concatenate,
|
||||
ParamSpec as ParamSpec,
|
||||
TypeAlias as TypeAlias,
|
||||
TypeGuard as TypeGuard,
|
||||
is_typeddict as is_typeddict,
|
||||
)
|
||||
else:
|
||||
class ParamSpecArgs:
|
||||
__origin__: ParamSpec
|
||||
@@ -122,3 +128,4 @@ else:
|
||||
Concatenate: _SpecialForm = ...
|
||||
TypeAlias: _SpecialForm = ...
|
||||
TypeGuard: _SpecialForm = ...
|
||||
def is_typeddict(tp: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user