orkes.graph.function_assertion#

orkes.graph.function_assertion(func, expected_type)[source]#

Asserts that a function has at least one parameter with the expected type annotation.

Parameters:
  • func (Callable) – The function to inspect.

  • expected_type (type) – The expected type annotation.

Returns:

True if a parameter with the expected type is found, False otherwise.

Return type:

bool