py2http.types¶
This module defines several type aliases and constants related to function parameters and signatures.
The WriteOpResult TypedDict represents the result of a write operation, with keys for the success status (ok), number of items affected (n), and identifiers (ids) of the affected items.
The ParameterKind constant represents the type of a Parameter, specifically Parameter.POSITIONAL_OR_KEYWORD.
The Params alias is used to represent an Iterable of Parameter objects, while HasParams is a union type that can represent various structures that contain Parameter objects, such as Iterable, Mapping, Signature, or Callable.
Additionally, shorthand constants are defined for the different kinds of parameters:
PKforParameter.POSITIONAL_OR_KEYWORDVPandVKforParameter.VAR_POSITIONALandParameter.VAR_KEYWORDrespectivelyPOandKOforParameter.POSITIONAL_ONLYandParameter.KEYWORD_ONLYrespectivelyvar_param_kindsis a set containingVPandVKfor easy access to variable parameter kinds.
This module provides a convenient way to work with function parameters and signatures in Python.
Classes