mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
ruff: fix quoted-annotation
This commit is contained in:
@@ -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, ...]:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user