Skip to content

bagof.hints.numpy.typevars.inv

Invariant numpy TypeVars.

Importing this module does not import numpy: its TypeVars are resolved on first access, which is when numpy is imported.

Attributes

DTYPE module-attribute

DTYPE = tx.TypeVar('DTYPE', bound=np.dtype)

An invariant TypeVar for numpy dtypes.

DTYPELIKE module-attribute

DTYPELIKE = tx.TypeVar('DTYPELIKE', bound=npt.DTypeLike)

An invariant TypeVar for objects convertible to a numpy dtype.