Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
344 B
Python
Raw Permalink Normal View History

from typing import Union, overload
class entity_instance:
@overload
def is_a(self) -> str: ...
@overload
def is_a(self, ifc_class: str, /) -> bool: ...
@overload
def is_a(self, with_schema: bool, /) -> str: ...
def is_a(self, *args: Union[str, bool]) -> Union[str, bool]:
return args[0] if args else "foo"