mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
ifcopenshell_wrapper.pyi
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user