Skip to content

~.helpers

Helpers

verify_type

verify_type(obj: object, _type: type, name: str) -> None

Verify that the provided object is an instance of the type.

PARAMETER DESCRIPTION
obj

The object instance to check the type.

TYPE: object

_type

The object type to check for.

TYPE: type

name

The name of this object in a generated exception, if an issue occurs.

TYPE: str

RAISES DESCRIPTION
TypeError

If the provided object is not an instance of the type.