ulkb.Theory.lookup_python_type_alias#

Theory.lookup_python_type_alias(arg, default=<class 'ulkb.util.Nil'>)[source]#

Searches for Python type alias.

If default is given, returns it instead of raising an exception.

Parameters:
  • arg – Id.

  • default – Value.

Returns:

Type.

Raises:

LookupErrorarg not in theory.