Fix Ruff UP037 (quoted-annotation)

https://docs.astral.sh/ruff/rules/quoted-annotation/
This commit is contained in:
Andrej
2025-05-28 15:03:40 +05:00
parent 3b9d6ed145
commit a42a95adcb
10 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -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]: