mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
validate: document supported Path type
This commit is contained in:
@@ -55,6 +55,7 @@ import sys
|
|||||||
import types
|
import types
|
||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
from logging import Handler, Logger
|
from logging import Handler, Logger
|
||||||
|
from pathlib import Path
|
||||||
from types import EllipsisType
|
from types import EllipsisType
|
||||||
from typing import TYPE_CHECKING, Any, Optional, Union, TypeAlias, Literal
|
from typing import TYPE_CHECKING, Any, Optional, Union, TypeAlias, Literal
|
||||||
from typing_extensions import TypedDict, NotRequired
|
from typing_extensions import TypedDict, NotRequired
|
||||||
@@ -414,7 +415,7 @@ def get_entity_attributes(schema: schema_definition, entity: str) -> tuple[entit
|
|||||||
return entity_attrs
|
return entity_attrs
|
||||||
|
|
||||||
|
|
||||||
def validate(f: Union[ifcopenshell.file, str], logger: Union[Logger, json_logger], express_rules=False) -> None:
|
def validate(f: ifcopenshell.file | str | Path, logger: Logger | json_logger, express_rules: bool = False) -> None:
|
||||||
"""
|
"""
|
||||||
For an IFC population model `f` (or filepath to such a file) validate whether the entity attribute values are correctly supplied. As this
|
For an IFC population model `f` (or filepath to such a file) validate whether the entity attribute values are correctly supplied. As this
|
||||||
is a function that is applied after a file has been parsed, certain types of errors in syntax, duplicate
|
is a function that is applied after a file has been parsed, certain types of errors in syntax, duplicate
|
||||||
|
|||||||
Reference in New Issue
Block a user