mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 02:27:59 +00:00
Fix UP037 (quoted-annotation)
This commit is contained in:
@@ -1423,7 +1423,7 @@ class BIM_OT_attribute_add_subitem(bpy.types.Operator):
|
|||||||
data_path: str
|
data_path: str
|
||||||
|
|
||||||
def execute(self, context) -> set["rna_enums.OperatorReturnItems"]:
|
def execute(self, context) -> set["rna_enums.OperatorReturnItems"]:
|
||||||
col: "bpy.types.bpy_prop_collection_idprop[StrProperty]"
|
col: bpy.types.bpy_prop_collection_idprop[StrProperty]
|
||||||
col = eval(self.data_path)
|
col = eval(self.data_path)
|
||||||
col.add()
|
col.add()
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
@@ -1444,7 +1444,7 @@ class BIM_OT_attribute_remove_subitem(bpy.types.Operator):
|
|||||||
index: int
|
index: int
|
||||||
|
|
||||||
def execute(self, context) -> set["rna_enums.OperatorReturnItems"]:
|
def execute(self, context) -> set["rna_enums.OperatorReturnItems"]:
|
||||||
col: "bpy.types.bpy_prop_collection_idprop[StrProperty]"
|
col: bpy.types.bpy_prop_collection_idprop[StrProperty]
|
||||||
col = eval(self.data_path)
|
col = eval(self.data_path)
|
||||||
col.remove(self.index)
|
col.remove(self.index)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user