Skip to content

bagof.hints.numpy.typevars.co

Covariant 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', covariant=True, bound=np.dtype)

A covariant TypeVar for numpy dtypes.

DTYPELIKE module-attribute

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

A covariant TypeVar for objects convertible to a numpy dtype.