typing

compression_safeguards.utils.typing

Commonly used type variables.

C module-attribute

C = TypeVar('C', bound=unsignedinteger, covariant=True)

The numpy data type for safeguard corrections (covariant).

Fi module-attribute

Fi = TypeVar('Fi', bound=floating)

Any numpy floating-point data type (invariant).

S module-attribute

S = TypeVar('S', bound=tuple[int, ...], covariant=True)

Any array shape (covariant).

T module-attribute

T = TypeVar('T', bound=number, covariant=True)

Any numpy number data type (covariant).

Ti module-attribute

Ti = TypeVar('Ti', bound=number)

Any numpy number data type (invariant).

TB module-attribute

TB = TypeVar('TB', bound=number | bool, covariant=True)

Any numpy number or boolean data type (covariant).

U module-attribute

U = TypeVar('U', bound=unsignedinteger, covariant=True)

Any numpy unsignedinteger data type (covariant).

Ui module-attribute

Ui = TypeVar('Ui', bound=unsignedinteger)

Any numpy unsignedinteger data type (invariant).