matching_types#

maize.utilities.utilities.matching_types(arg1: Any, arg2: Any, strict: bool = False) bool[source]#

Checks if two types are matching.

Parameters:
  • arg1 – The datatypes to compare

  • arg2 – The datatypes to compare

  • strict – If set, will only output True if the types match exactly

Returns:

True if the types are compatible, False otherwise

Return type:

bool