typing
Utility function for typing purposes.
¶
Check if an object is a given type.
Uses typeguard library to check objects using typing definitions.
| PARAMETER | DESCRIPTION |
|---|---|
value |
Value to be checked against
TYPE:
|
expected_type |
A class or generic type instance.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Flag whether the object is an instance of the required type.
TYPE:
|