typecheck#
- maize.utilities.utilities.typecheck(value: Any, datatype: Any) bool [source]#
Checks if a value is valid using type annotations.
- Parameters:
value – Value to typecheck
datatype – Type to check against. Can also be a Union or Annotated.
- Returns:
True
if the value is valid,False
otherwise- Return type: