mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +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
|
||||
|
||||
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.add()
|
||||
return {"FINISHED"}
|
||||
@@ -1444,7 +1444,7 @@ class BIM_OT_attribute_remove_subitem(bpy.types.Operator):
|
||||
index: int
|
||||
|
||||
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.remove(self.index)
|
||||
return {"FINISHED"}
|
||||
|
||||
Reference in New Issue
Block a user