Skip to content

bagof.hints.numpy.typevars.infer

numpy TypeVars with inferred variance.

Attributes

DTYPE module-attribute

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

An inferred-variance TypeVar for numpy dtypes.

DTYPELIKE module-attribute

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

An inferred-variance TypeVar for objects convertible to a numpy dtype.