| abstractmethod(funcobj) |
A decorator indicating abstract methods. [extrait de abstractmethod.__doc__] |
| AbstractSet(*args, **kwargs) |
A generic version of collections.abc.Set. [extrait de AbstractSet.__doc__] |
| Annotated(*args, **kwds) |
Add context-specific metadata to a type. [extrait de Annotated.__doc__] |
| assert_never(arg: Never) -> Never |
Statically assert that a line of code is unreachable. [extrait de assert_never.__doc__] |
| assert_type(val, typ) |
Ask a static type checker to confirm that the value is of the given type. [extrait de assert_type.__doc__] |
| AsyncContextManager(*args, **kwargs) |
A generic version of contextlib.AbstractAsyncContextManager. [extrait de AsyncContextManager.__doc__] |
| AsyncGenerator(*args, **kwargs) |
A generic version of collections.abc.AsyncGenerator. [extrait de AsyncGenerator.__doc__] |
| AsyncIterable(*args, **kwargs) |
A generic version of collections.abc.AsyncIterable. [extrait de AsyncIterable.__doc__] |
| AsyncIterator(*args, **kwargs) |
A generic version of collections.abc.AsyncIterator. [extrait de AsyncIterator.__doc__] |
| Awaitable(*args, **kwargs) |
A generic version of collections.abc.Awaitable. [extrait de Awaitable.__doc__] |
| ByteString(*args, **kwargs) |
A generic version of collections.abc.ByteString. [extrait de ByteString.__doc__] |
| Callable(*args, **kwargs) |
Deprecated alias to collections.abc.Callable. [extrait de Callable.__doc__] |
| cast(typ, val) |
Cast a value to a type. [extrait de cast.__doc__] |
| ChainMap(*args, **kwargs) |
A generic version of collections.ChainMap. [extrait de ChainMap.__doc__] |
| ClassVar(*args, **kwds) |
Special type construct to mark class variables. [extrait de ClassVar.__doc__] |
| clear_overloads() |
Clear all overloads in the registry. [extrait de clear_overloads.__doc__] |
| Collection(*args, **kwargs) |
A generic version of collections.abc.Collection. [extrait de Collection.__doc__] |
| Concatenate(*args, **kwds) |
Special form for annotating higher-order functions. [extrait de Concatenate.__doc__] |
| Container(*args, **kwargs) |
A generic version of collections.abc.Container. [extrait de Container.__doc__] |
| ContextManager(*args, **kwargs) |
A generic version of contextlib.AbstractContextManager. [extrait de ContextManager.__doc__] |
| Coroutine(*args, **kwargs) |
A generic version of collections.abc.Coroutine. [extrait de Coroutine.__doc__] |
| Counter(*args, **kwargs) |
A generic version of collections.Counter. [extrait de Counter.__doc__] |
| dataclass_transform(*, eq_default: bool = True, order_default: bool = False, kw_only_default: bool = False, frozen_default: bool = False, field_specifiers: tuple[typing.Union[type[typing.Any], typing.Callable[..., typing.Any]], ...] = (), **kwargs: Any) -> <class '_IdentityCallable'> |
Decorator to mark an object as providing dataclass-like behaviour. [extrait de dataclass_transform.__doc__] |
| DefaultDict(*args, **kwargs) |
A generic version of collections.defaultdict. [extrait de DefaultDict.__doc__] |
| Deque(*args, **kwargs) |
A generic version of collections.deque. [extrait de Deque.__doc__] |
| Dict(*args, **kwargs) |
A generic version of dict. [extrait de Dict.__doc__] |
| Final(*args, **kwds) |
Special typing construct to indicate final names to type checkers. [extrait de Final.__doc__] |
| final(f) |
Decorator to indicate final methods and final classes. [extrait de final.__doc__] |
| FrozenSet(*args, **kwargs) |
A generic version of frozenset. [extrait de FrozenSet.__doc__] |
| Generator(*args, **kwargs) |
A generic version of collections.abc.Generator. [extrait de Generator.__doc__] |
| get_args(tp) |
Get type arguments with all substitutions performed. [extrait de get_args.__doc__] |
| get_origin(tp) |
Get the unsubscripted version of a type. [extrait de get_origin.__doc__] |
| get_overloads(func) |
Return all defined overloads for *func* as a sequence. [extrait de get_overloads.__doc__] |
| get_protocol_members(tp: type) -> frozenset[str] |
Return the set of members defined in a Protocol. [extrait de get_protocol_members.__doc__] |
| get_type_hints(obj, globalns=None, localns=None, include_extras=False) |
Return type hints for an object. [extrait de get_type_hints.__doc__] |
| Hashable(*args, **kwargs) |
A generic version of collections.abc.Hashable. [extrait de Hashable.__doc__] |
| is_protocol(tp: type) -> bool |
Return True if the given type is a Protocol. [extrait de is_protocol.__doc__] |
| is_typeddict(tp) |
Check if an annotation is a TypedDict class. [extrait de is_typeddict.__doc__] |
| ItemsView(*args, **kwargs) |
A generic version of collections.abc.ItemsView. [extrait de ItemsView.__doc__] |
| Iterable(*args, **kwargs) |
A generic version of collections.abc.Iterable. [extrait de Iterable.__doc__] |
| Iterator(*args, **kwargs) |
A generic version of collections.abc.Iterator. [extrait de Iterator.__doc__] |
| KeysView(*args, **kwargs) |
A generic version of collections.abc.KeysView. [extrait de KeysView.__doc__] |
| List(*args, **kwargs) |
A generic version of list. [extrait de List.__doc__] |
| Literal(*args, **kwds) |
Special typing form to define literal types (a.k.a. value types). [extrait de Literal.__doc__] |
| LiteralString(*args, **kwds) |
Represents an arbitrary literal string. [extrait de LiteralString.__doc__] |
| Mapping(*args, **kwargs) |
A generic version of collections.abc.Mapping. [extrait de Mapping.__doc__] |
| MappingView(*args, **kwargs) |
A generic version of collections.abc.MappingView. [extrait de MappingView.__doc__] |
| Match(*args, **kwargs) |
A generic version of re.Match. [extrait de Match.__doc__] |
| MutableMapping(*args, **kwargs) |
A generic version of collections.abc.MutableMapping. [extrait de MutableMapping.__doc__] |
| MutableSequence(*args, **kwargs) |
A generic version of collections.abc.MutableSequence. [extrait de MutableSequence.__doc__] |
| MutableSet(*args, **kwargs) |
A generic version of collections.abc.MutableSet. [extrait de MutableSet.__doc__] |
| NamedTuple(typename, fields=<sentinel>, /, **kwargs) |
Typed version of namedtuple. [extrait de NamedTuple.__doc__] |
| Never(*args, **kwds) |
The bottom type, a type that has no members. [extrait de Never.__doc__] |
| no_type_check(arg) |
Decorator to indicate that annotations are not type hints. [extrait de no_type_check.__doc__] |
| no_type_check_decorator(decorator) |
Decorator to give another decorator the @no_type_check effect. [extrait de no_type_check_decorator.__doc__] |
| NoReturn(*args, **kwds) |
Special type indicating functions that never return. [extrait de NoReturn.__doc__] |
| NotRequired(*args, **kwds) |
Special typing construct to mark a TypedDict key as potentially missing. [extrait de NotRequired.__doc__] |
| Optional(*args, **kwds) |
Optional[X] is equivalent to Union[X, None]. [extrait de Optional.__doc__] |
| OrderedDict(*args, **kwargs) |
A generic version of collections.OrderedDict. [extrait de OrderedDict.__doc__] |
| overload(func) |
Decorator for overloaded functions/methods. [extrait de overload.__doc__] |
| override(method: F) -> F |
Indicate that a method is intended to override a method in a base class. [extrait de override.__doc__] |
| Pattern(*args, **kwargs) |
A generic version of re.Pattern. [extrait de Pattern.__doc__] |
| ReadOnly(*args, **kwds) |
A special typing construct to mark an item of a TypedDict as read-only. [extrait de ReadOnly.__doc__] |
| Required(*args, **kwds) |
Special typing construct to mark a TypedDict key as required. [extrait de Required.__doc__] |
| reveal_type(obj: T) -> T |
Ask a static type checker to reveal the inferred type of an expression. [extrait de reveal_type.__doc__] |
| Reversible(*args, **kwargs) |
A generic version of collections.abc.Reversible. [extrait de Reversible.__doc__] |
| runtime_checkable(cls) |
Mark a protocol class as a runtime protocol. [extrait de runtime_checkable.__doc__] |
| Self(*args, **kwds) |
Used to spell the type of "self" in classes. [extrait de Self.__doc__] |
| Sequence(*args, **kwargs) |
A generic version of collections.abc.Sequence. [extrait de Sequence.__doc__] |
| Set(*args, **kwargs) |
A generic version of set. [extrait de Set.__doc__] |
| Sized(*args, **kwargs) |
A generic version of collections.abc.Sized. [extrait de Sized.__doc__] |
| Tuple(*args, **kwargs) |
Deprecated alias to builtins.tuple. [extrait de Tuple.__doc__] |
| Type(*args, **kwargs) |
Deprecated alias to builtins.type. [extrait de Type.__doc__] |
| TypeAlias(*args, **kwds) |
Special form for marking type aliases. [extrait de TypeAlias.__doc__] |
| TypedDict(typename, fields=<sentinel>, /, *, total=True) |
A simple typed namespace. At runtime it is equivalent to a plain dict. [extrait de TypedDict.__doc__] |
| TypeGuard(*args, **kwds) |
Special typing construct for marking user-defined type predicate functions. [extrait de TypeGuard.__doc__] |
| TypeIs(*args, **kwds) |
Special typing construct for marking user-defined type predicate functions. [extrait de TypeIs.__doc__] |
| Union(*args, **kwds) |
Union type; Union[X, Y] means either X or Y. [extrait de Union.__doc__] |
| Unpack(*args, **kwds) |
Type unpack operator. [extrait de Unpack.__doc__] |
| ValuesView(*args, **kwargs) |
A generic version of collections.abc.ValuesView. [extrait de ValuesView.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :