Skip to content

example_fgen_basic.typing#

Type hints which are too annoying to remember

Attributes:

Name Type Description
NP_ARRAY_OF_BOOL TypeAlias

Type alias for an array of booleans

NP_ARRAY_OF_FLOAT TypeAlias

Type alias for an array of numpy floats

NP_ARRAY_OF_FLOAT_OR_INT TypeAlias

Type alias for an array of numpy float or int (not complex)

NP_ARRAY_OF_INT TypeAlias

Type alias for an array of numpy int

NP_ARRAY_OF_NUMBER TypeAlias

Type alias for an array of numpy float or int (including complex)

NP_FLOAT_OR_INT TypeAlias

Type alias for a numpy float or int (not complex)

NP_ARRAY_OF_BOOL module-attribute #

NP_ARRAY_OF_BOOL: TypeAlias = NDArray[bool]

Type alias for an array of booleans

NP_ARRAY_OF_FLOAT module-attribute #

NP_ARRAY_OF_FLOAT: TypeAlias = NDArray[floating[Any]]

Type alias for an array of numpy floats

NP_ARRAY_OF_FLOAT_OR_INT module-attribute #

NP_ARRAY_OF_FLOAT_OR_INT: TypeAlias = NDArray[
    NP_FLOAT_OR_INT
]

Type alias for an array of numpy float or int (not complex)

NP_ARRAY_OF_INT module-attribute #

NP_ARRAY_OF_INT: TypeAlias = NDArray[integer[Any]]

Type alias for an array of numpy int

NP_ARRAY_OF_NUMBER module-attribute #

NP_ARRAY_OF_NUMBER: TypeAlias = NDArray[number[Any]]

Type alias for an array of numpy float or int (including complex)

NP_FLOAT_OR_INT module-attribute #

NP_FLOAT_OR_INT: TypeAlias = Union[
    floating[Any], integer[Any]
]

Type alias for a numpy float or int (not complex)