check_type()
Check if an object is of the expected type.
Usage
check_type(
obj,
expected,
)Parameters
obj: object-
The object to type-check.
expected: type-
The expected type.
Returns
bool-
True if the object matches the expected type.
Examples
>>> check_type("hello", str)
True