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]]]

Concrete Data Object Types#

pyvista.ConcreteGridType#

ConcreteGridType = TypeVar(ConcreteGridType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[pyvista.core.grid.ImageData, pyvista.core.grid.RectilinearGrid].

Type variable of all concrete PyVista Grid classes.

pyvista.ConcretePointGridType#

ConcretePointGridType = TypeVar(ConcretePointGridType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[pyvista.core.pointset.ExplicitStructuredGrid, pyvista.core.pointset.StructuredGrid, pyvista.core.pointset.UnstructuredGrid].

Type variable of all concrete PyVista PointGrid` classes.

pyvista.ConcretePointSetType#

ConcretePointSetType = TypeVar(ConcretePointSetType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[pyvista.core.pointset.ExplicitStructuredGrid, pyvista.core.pointset.PointSet, pyvista.core.pointset.PolyData, pyvista.core.pointset.StructuredGrid, pyvista.core.pointset.UnstructuredGrid].

Type variable of all concrete PyVista PointSet classes.

pyvista.ConcreteDataSetType#

ConcreteDataSetType = TypeVar(ConcreteDataSetType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[pyvista.core.grid.ImageData, pyvista.core.grid.RectilinearGrid, pyvista.core.pointset.ExplicitStructuredGrid, pyvista.core.pointset.PointSet, pyvista.core.pointset.PolyData, pyvista.core.pointset.StructuredGrid, pyvista.core.pointset.UnstructuredGrid].

Type variable of all concrete DataSet classes.

pyvista.ConcreteDataObjectType#

ConcreteDataObjectType = TypeVar(ConcreteDataObjectType, bound=Union)#

Type:    TypeVar

Invariant TypeVar bound to typing.Union[pyvista.core.grid.ImageData, pyvista.core.grid.RectilinearGrid, pyvista.core.pointset.ExplicitStructuredGrid, pyvista.core.pointset.PointSet, pyvista.core.pointset.PolyData, pyvista.core.pointset.StructuredGrid, pyvista.core.pointset.UnstructuredGrid, pyvista.core.objects.Table, pyvista.core.composite.MultiBlock, pyvista.core.partitioned.PartitionedDataSet].

Type variable of all concrete DataObject classes.