ifcopenshell_wrapper.pyi

This commit is contained in:
Andrej
2025-05-30 17:17:53 +05:00
parent fb1b5bea51
commit 59b17fc593
3 changed files with 27 additions and 13 deletions
@@ -73,7 +73,7 @@ def get_declaration(element: ifcopenshell.entity_instance):
return element.wrapped_data.declaration().as_entity()
def is_a(declaration: ifcopenshell.ifcopenshell_wrapper.entity, ifc_class: str) -> bool:
def is_a(declaration: ifcopenshell.ifcopenshell_wrapper.declaration, ifc_class: str) -> bool:
"""Checks if a schema declaration is a class
:param declaration: The declaration from the schema.
@@ -57,7 +57,7 @@ def get_function_node_name(node: ast.FunctionDef) -> Union[SubnameType, None]:
:return: Function node name as ``SubnameType`` or ``None``, if function wasn't processed and can be skipped.
"""
node_name = node.name
if node_name.startswith("_"):
if node_name.startswith("_") and node_name not in ("_is",):
return None
args = [a.arg for a in node.args.args]
if node.args.vararg: