This commit is contained in:
Andrej730
2025-02-28 11:08:42 +05:00
parent 9187f2d2b5
commit 277aaca6c5
15 changed files with 184 additions and 102 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ def write(output: Union[ifcopenshell.file, str], filepath: str) -> None:
def extract_docs(
submodule_name: str, cls_name: str, method_name: str = "__init__", boilerplate_args: Optional[Iterable[str]] = None
submodule_name: str, cls_name: str, method_name: str = "__init__", boilerplate_args: Optional[Sequence[str]] = None
) -> Union["PatcherDoc", None]:
"""Extract class docstrings and method arguments
@@ -173,7 +173,7 @@ class InputDoc(TypedDict):
filter_glob: NotRequired[str]
def _extract_docs(cls: type, method_name: str, boilerplate_args: Union[Iterable[str], None]) -> PatcherDoc:
def _extract_docs(cls: type, method_name: str, boilerplate_args: Union[Sequence[str], None]) -> PatcherDoc:
inputs: dict[str, InputDoc] = {}
method = getattr(cls, method_name)
if boilerplate_args is None: