scrnatools._utils.type_check
- scrnatools._utils.type_check(var: Any, varname: str, types: Any)[source]
Checks the type of a variable.
- Parameters:
var (Any) – the variable to check the type of.
varname (str) – the name of the variable.
types (Any) – the type the variable should be.
- Raises:
TypeError – when ‘var’ is not one of ‘types’.