Skip to content

mkit.typing

AnyMesh module-attribute

AnyPointCloud module-attribute

AnyPointCloud = Any

AnyPointSet module-attribute

AnyPointSet = AnyPointCloud | AnyMesh

AnyQuadMesh module-attribute

AnyQuadMesh = Any

AnySurfaceMesh module-attribute

AnySurfaceMesh = AnyTriMesh | AnyQuadMesh

AnyTetMesh module-attribute

AnyTetMesh = Any

AnyTriMesh module-attribute

AnyTriMesh = Any

AnyVolumeMesh module-attribute

AnyVolumeMesh = AnyTetMesh

AttributeArray module-attribute

AttributeArray = Shaped[ndarray, 'N ...']

AttributesLike module-attribute

AttributesLike = (
    Mapping[str, Shaped[ArrayLike, "N ..."]]
    | DataSetAttributes
)

StrPath module-attribute

StrPath = str | PathLike[str]

full_name

full_name(obj: Any) -> str

Returns the fully qualified name of the given object.

Parameters:

  • obj (Any) –

    The object whose fully qualified name is to be returned.

Returns:

  • str

    The fully qualified name of the object.

Reference
  1. https://stackoverflow.com/a/2020083/18410348

is_array_like

is_array_like(obj: Any) -> bool

is_class_named

is_class_named(
    cls: type, name: str | Sequence[str]
) -> bool

is_class_named_partial

is_class_named_partial(
    cls: type, name: str | Sequence[str]
) -> bool

is_instance_named

is_instance_named(
    obj: Any, name: str | Sequence[str]
) -> bool

is_instance_named_partial

is_instance_named_partial(
    obj: Any, name: str | Sequence[str]
) -> bool

is_named

is_named(obj: Any, name: str | Sequence[str]) -> bool

is_named_partial

is_named_partial(
    obj: Any, name: str | Sequence[str]
) -> bool

is_numpy

is_numpy(obj: Any) -> TypeGuard[ndarray]

is_torch

is_torch(obj: Any) -> TypeGuard[Tensor]