Get the actual function object (unwrapping the listener wrapper if needed).
(module: str, function: str)
| 131 | |
| 132 | |
| 133 | def _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 | |
| 143 | def _extract_params(fn) -> list[dict]: |
no outgoing calls
no test coverage detected