From 055f64fa9b995a28ddf7391b1259bdeffe7f080d Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 10 Aug 2026 15:38:45 +0500 Subject: [PATCH] ruff: fix `quoted-annotation` --- .../ifcopenshell/ifcopenshell_wrapper.pyi | 6 +++--- .../ifcopenshell/util/scripts/sync_stub.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index 40ef1bfc1d..43586e3689 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -266,7 +266,7 @@ class geometry_serializer: def ready(self): ... def setFile(self, file: file) -> None: ... def setUnitNameAndMagnitude(self, name, magnitude): ... - def settings(self, *args) -> "settings": ... + def settings(self, *args) -> settings: ... def write(self, *args): ... def writeHeader(self): ... @@ -371,7 +371,7 @@ class representation: - 2468 - IfcRelVoidsElement """ - def settings(self) -> "settings": ... + def settings(self) -> settings: ... class RocksDBPrefixIterator: def __init__(self, storage, prefix): ... @@ -908,7 +908,7 @@ class file(file_mixin): ... @staticmethod - def from_string(s: str) -> "file": ... + def from_string(s: str) -> file: ... def get_inverses_by_declaration( self, instance_id: int, declaration: declaration, attribute_index: int ) -> tuple[entity_instance, ...]: diff --git a/src/ifcopenshell-python/ifcopenshell/util/scripts/sync_stub.py b/src/ifcopenshell-python/ifcopenshell/util/scripts/sync_stub.py index 2ba98dce5b..02ca02dece 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/scripts/sync_stub.py +++ b/src/ifcopenshell-python/ifcopenshell/util/scripts/sync_stub.py @@ -120,14 +120,14 @@ def iter_simple_entries(body: "list") -> "list[Entry]": property(calc_surface_area_)`) - is left alone entirely by never being reported as an Entry at all. """ - consumed: "set[str]" = set() + consumed: set[str] = set() for node in body: if isinstance(node, ast.Assign) and isinstance(node.value, ast.Call): func = node.value.func if isinstance(func, ast.Name) and func.id in ("property", "staticmethod"): consumed.update(arg.id for arg in node.value.args if isinstance(arg, ast.Name)) - entries: "list[Entry]" = [] + entries: list[Entry] = [] for node in body: if isinstance(node, ast.ClassDef): bases = [b.id for b in node.bases if isinstance(b, ast.Name) and b.id not in ("_object", "object")] @@ -255,7 +255,7 @@ def splice_body( added_iter = iter(added_ids) next_added = next(added_iter, None) - out: "list[str]" = [] + out: list[str] = [] def flush_added_up_to(identity: Optional[str]): nonlocal next_added