qml.templates.utils.check_type

check_type(element, types, msg)[source]

Check that the type of element is one of types.

Parameters
  • element – variable to check

  • types (list) – possible types for element msg (str): error message to display