MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / _get_underlying_function

Function _get_underlying_function

src/ifcedit/ifcedit/discover.py:133–140  ·  view source on GitHub ↗

Get the actual function object (unwrapping the listener wrapper if needed).

(module: str, function: str)

Source from the content-addressed store, hash-verified

131
132
133def _get_underlying_function(module: str, function: str):
134 """Get the actual function object (unwrapping the listener wrapper if needed)."""
135 try:
136 fn_module = importlib.import_module(f"ifcopenshell.api.{module}.{function}")
137 fn = getattr(fn_module, function, None)
138 return fn
139 except (ImportError, AttributeError):
140 return None
141
142
143def _extract_params(fn) -> list[dict]:

Callers 2

list_functionsFunction · 0.85
function_docsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected