mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix Ruff UP037 (quoted-annotation)
https://docs.astral.sh/ruff/rules/quoted-annotation/
This commit is contained in:
@@ -714,7 +714,7 @@ class file:
|
||||
except:
|
||||
pass # Header is invalid
|
||||
|
||||
def write(self, path: "os.PathLike | str", format: Optional[str] = None, zipped: bool = False) -> None:
|
||||
def write(self, path: os.PathLike | str, format: Optional[str] = None, zipped: bool = False) -> None:
|
||||
"""Write ifc model to file.
|
||||
|
||||
:param format: Force use of a specific format. Guessed from file name
|
||||
@@ -765,11 +765,11 @@ class file:
|
||||
return
|
||||
|
||||
@staticmethod
|
||||
def from_string(s: str) -> "file":
|
||||
def from_string(s: str) -> file:
|
||||
return file(ifcopenshell_wrapper.read(s))
|
||||
|
||||
@staticmethod
|
||||
def from_pointer(v) -> "file":
|
||||
def from_pointer(v) -> file:
|
||||
return file_dict.get(v)()
|
||||
|
||||
def to_string(self) -> str:
|
||||
|
||||
@@ -365,7 +365,7 @@ class tree(ifcopenshell_wrapper.tree):
|
||||
def select(
|
||||
self,
|
||||
value: Union[
|
||||
entity_instance, ifcopenshell_wrapper.BRepElement, tuple[float, float, float], "TopoDS.TopoDS_Shape"
|
||||
entity_instance, ifcopenshell_wrapper.BRepElement, tuple[float, float, float], TopoDS.TopoDS_Shape
|
||||
],
|
||||
**kwargs,
|
||||
) -> list[entity_instance]:
|
||||
|
||||
Reference in New Issue
Block a user