diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index 323200b9fb..ac5cb061b9 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -1812,8 +1812,8 @@ def open(fn: str, readonly: bool = False, logger=None) -> file: ... def parse_ifcxml(filename, logger=None): ... def polygons_to_svg(*args): ... def read(data): ... -def register_schema(arg1): ... -def schema_by_name(arg1: str) -> schema_definition: ... +def register_schema(schema: schema_definition) -> None: ... +def schema_by_name(schema_name: str) -> schema_definition: ... def schema_names() -> tuple[str, ...]: ... def serialise(schema_name, shape_str, advanced=True): ... def set_feature(x, v): ... diff --git a/src/ifcparse/IfcSchema.h b/src/ifcparse/IfcSchema.h index dce8a43348..bc7bb0e40a 100644 --- a/src/ifcparse/IfcSchema.h +++ b/src/ifcparse/IfcSchema.h @@ -513,11 +513,11 @@ class IFC_PARSE_API schema_definition { IfcUtil::IfcBaseClass* instantiate(const IfcParse::declaration* decl, IfcEntityInstanceData&& data) const; }; -IFC_PARSE_API const schema_definition* schema_by_name(const std::string&); +IFC_PARSE_API const schema_definition* schema_by_name(const std::string& schema_name); IFC_PARSE_API std::vector schema_names(); -IFC_PARSE_API void register_schema(schema_definition*); +IFC_PARSE_API void register_schema(schema_definition* schema); IFC_PARSE_API void clear_schemas(); } // namespace IfcParse