ulkb.Object.check#
- classmethod Object.check(arg, func_name=None, arg_name=None, arg_position=None)[source]#
Checks whether arg is an instance of this class.
- Parameters:
arg – Value.
func_name – Function name.
arg_name – Argument name.
arg_position – Argument position.
- Returns:
arg.
- Raises:
TypeError – arg is not an instance of this class.