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
+1 -1
View File
@@ -44,7 +44,7 @@ T = TypeVar("T")
class Bcf(bonsai.core.tool.Bcf):
@classmethod
def get_bcf_props(cls) -> "BCFProperties":
def get_bcf_props(cls) -> BCFProperties:
return bpy.context.scene.BCFProperties
@classmethod
+1 -1
View File
@@ -40,7 +40,7 @@ class Cost(bonsai.core.tool.Cost):
RELATED_OBJECT_TYPE = Literal["PRODUCT", "PROCESS", "RESOURCE"]
@classmethod
def get_cost_props(cls) -> "BIMCostProperties":
def get_cost_props(cls) -> BIMCostProperties:
return bpy.context.scene.BIMCostProperties
@classmethod
+1 -1
View File
@@ -124,7 +124,7 @@ class PsetTemplate(bonsai.core.tool.PsetTemplate):
PSET_TEMPLATE_LOCATION = Literal["Global Pset Template", "Project Pset Template"]
@classmethod
def get_pset_template_files(cls) -> list[tuple[Path, "PSET_TEMPLATE_LOCATION"]]:
def get_pset_template_files(cls) -> list[tuple[Path, PSET_TEMPLATE_LOCATION]]:
"""
:return: List of pset template files. Each template file is represented
by a tuple of the filepath and pset template location source.