Typing#

Type aliases and type variable used by PyVista.

Numeric Array-Like Types#

pyvista.NumberType#

NumberType = TypeVar(NumberType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[numpy.floating, numpy.integer, numpy.bool, float, int, bool].

Type variable for numeric data types.

pyvista.ArrayLike#

ArrayLike#

Any-dimensional array-like object with numerical values.

Includes sequences, nested sequences, and numpy arrays. Scalar values are not included.

alias of ndarray[Any, dtype[NumberType]] | Sequence[NumberType] | Sequence[ndarray[Any, dtype[NumberType]]] | Sequence[Sequence[NumberType]] | Sequence[Sequence[ndarray[Any, dtype[NumberType]]]] | Sequence[Sequence[Sequence[NumberType]]] | Sequence[Sequence[Sequence[ndarray[Any, dtype[NumberType]]]]] | Sequence[Sequence[Sequence[Sequence[NumberType]]]] | Sequence[Sequence[Sequence[Sequence[ndarray[Any, dtype[NumberType]]]]]]

pyvista.MatrixLike#

MatrixLike#

Two-dimensional array-like object with numerical values.

Includes singly-nested sequences and numpy arrays.

alias of ndarray[Any, dtype[NumberType]] | Sequence[Sequence[NumberType]] | Sequence[Sequence[ndarray[Any, dtype[NumberType]]]]

pyvista.VectorLike#

VectorLike#

One-dimensional array-like object with numerical values.

Includes sequences and numpy arrays.

alias of ndarray[Any, dtype[NumberType]] | Sequence[NumberType] | Sequence[ndarray[Any, dtype[NumberType]]]