mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 06:22:02 +08:00
Full signature for namedtuple (#541)
This commit is contained in:
@@ -16,7 +16,6 @@ Callable = object()
|
||||
Type = object()
|
||||
builtinclass = object()
|
||||
_promote = object()
|
||||
NamedTuple = object()
|
||||
no_type_check = object()
|
||||
NewType = object()
|
||||
|
||||
@@ -420,3 +419,9 @@ class Pattern(Generic[AnyStr]):
|
||||
# Functions
|
||||
|
||||
def get_type_hints(obj: Callable) -> dict[str, Any]: ...
|
||||
|
||||
# Type constructors
|
||||
|
||||
# NamedTuple is special-cased in the type checker; the initializer is ignored.
|
||||
def NamedTuple(typename: str, fields: Iterable[Tuple[str, Any]], *,
|
||||
verbose: bool = ..., rename: bool = ..., module: str = None) -> Type[tuple]: ...
|
||||
|
||||
Reference in New Issue
Block a user