ifcopenshell.open overload signature to consider new readonly argument

This commit is contained in:
Andrej730
2025-09-12 17:58:34 +05:00
parent 8a82343e27
commit a86904dd41
2 changed files with 40 additions and 1 deletions
@@ -135,7 +135,7 @@ def open(
def open(path: Union[os.PathLike, str], format: Optional[str] = None, *, should_stream: Literal[True]) -> _stream: ...
@overload
def open(
path: Union[os.PathLike, str], format: Optional[str] = None, *, should_stream: bool
path: Union[os.PathLike, str], format: Optional[str] = None, *, should_stream: bool = False, readonly: bool = False
) -> Union[_file, sqlite, _stream]: ...
def open(
path: Union[os.PathLike, str], format: Optional[str] = None, should_stream: bool = False, readonly: bool = False