openfl.utilities.checks.check_type#
- openfl.utilities.checks.check_type(obj, expected_type, logger)[source]#
Assert obj is of expected_type type.
- Parameters:
obj (Any) – The object to check.
expected_type (type) – The expected type of the object.
logger (Logger) – The logger to use for reporting the error.
- Raises:
TypeError – If the object is not of the expected type.