Typing (verry.typing)#

This module provides type definitions commonly used between modules.

class verry.typing.Scalar(*args, **kwargs)#

Bases: Protocol

Protocol that ensures scalar-like behavior.

Objects implementing this protocol must have four arithmetic operations and integer power defined, and four arithmetic operations must be compatible with integers.

class verry.typing.ComparableScalar(*args, **kwargs)#

Bases: Scalar, SupportsAbs, Protocol

Protocol for comparable Scalar, like a real number.