privex.helpers.types

Classes

NO_RESULT

Simple functionless type which means “no results were found or nothing matched this function’s query”.

USE_ORIG_VAR

A simple functionless type, used purely as a default parameter value meaning “fallback to the value from a certain other parameter”.

IP_OR_STR

Shorthand union which accepts IPv4Address, IPv6Address or str

NET_OR_STR

Shorthand union which accepts IPv4Network, IPv6Network or str

IP_NET_OR_STR

Combined IP_OR_STR + NET_OR_STR

VAL_FUNC_CORO

Type alias for callable’s, coroutine’s and awaitable’s

T

Plain generic type variable for use in helper functions

K

Plain generic type variable for use in helper functions

V

Plain generic type variable for use in helper functions

C

Generic type variable constrained to type / typing.Callable for use in helper functions

CL

Generic type variable constrained to type / typing.Callable for use in helper functions

USE_ORIG_VAR

A simple functionless type, used purely as a default parameter value meaning “fallback to the value from a certain other parameter”.

NO_RESULT

Simple functionless type which means “no results were found or nothing matched this function’s query”.

STRBYTES

Shorter alias for Union[bytes, str]

AnyNum

Shorter alias for Union[Decimal, int, float, str]

Number

Shorter alias for Union[Decimal, int, float]

NumberStr

The central part of internal API.