Introspect ShapeBuilder and return a summary of all public methods.
()
| 73 | |
| 74 | |
| 75 | def _list_shape_methods() -> list[dict]: |
| 76 | """Introspect ShapeBuilder and return a summary of all public methods.""" |
| 77 | import inspect |
| 78 | |
| 79 | from ifcedit.discover import _extract_params |
| 80 | from ifcopenshell.util.shape_builder import ShapeBuilder |
| 81 | |
| 82 | results = [] |
| 83 | for name, fn in inspect.getmembers(ShapeBuilder, predicate=inspect.isfunction): |
| 84 | if name.startswith("_"): |
| 85 | continue |
| 86 | doc = fn.__doc__ or "" |
| 87 | description = doc.strip().split("\n")[0] if doc.strip() else "" |
| 88 | results.append({"method": name, "description": description, "params": _extract_params(fn)}) |
| 89 | return results |
| 90 | |
| 91 | |
| 92 | def _shape_method_docs(method_name: str) -> dict: |
no test coverage detected