Skip to content

bagof.hints.numpy.typevars.contra

Contravariant numpy TypeVars.

Attributes

DTYPE module-attribute

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

A contravariant TypeVar for numpy dtypes.

DTYPELIKE module-attribute

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

A contravariant TypeVar for objects convertible to a numpy dtype.