@@ -85,7 +85,7 @@ def _execute(self, context):
8585class OverrideMeshSeparate (bpy .types .Operator , tool .Ifc .Operator ):
8686 bl_idname = "bim.override_mesh_separate"
8787 bl_label = "IFC Mesh Separate"
88- blender_op = bpy .ops .mesh .separate .get_rna_type ()
88+ blender_op = bpy .ops .mesh .separate .get_rna_type () # ty: ignore[missing-argument]
8989 bl_description = blender_op .description + ".\n Also makes sure changes are in sync with IFC."
9090 bl_options = {"REGISTER" , "UNDO" }
9191 blender_type_prop = blender_op .properties ["type" ]
@@ -246,7 +246,7 @@ def separate_element(
246246
247247class OverrideOriginSet (bpy .types .Operator , tool .Ifc .Operator ):
248248 bl_idname = "bim.override_origin_set"
249- blender_op = bpy .ops .object .origin_set .get_rna_type ()
249+ blender_op = bpy .ops .object .origin_set .get_rna_type () # ty: ignore[missing-argument]
250250 bl_label = "IFC Origin Set"
251251 bl_description = (
252252 blender_op .description + ".\n Also makes sure changes are in sync with IFC (operator works only on IFC objects)"
@@ -801,7 +801,7 @@ def calc_delete_is_batch(ifc_file: ifcopenshell.file, context: bpy.types.Context
801801class OverrideDelete (bpy .types .Operator ):
802802 bl_idname = "bim.override_object_delete"
803803 bl_label = "IFC Delete"
804- blender_op = bpy .ops .object .delete .get_rna_type ()
804+ blender_op = bpy .ops .object .delete .get_rna_type () # ty: ignore[missing-argument]
805805 bl_description = (
806806 blender_op .description
807807 + ".\n Also makes sure changes in sync with IFC."
@@ -821,7 +821,7 @@ class OverrideDelete(bpy.types.Operator):
821821 def poll (cls , context ):
822822 # Match `object.delete` poll for consistency.
823823 # `object.delete` poll just checks for OBJECT mode.
824- poll = bpy .ops .object .delete .poll ()
824+ poll = bpy .ops .object .delete .poll () # ty: ignore[missing-argument]
825825 if poll :
826826 return True
827827 cls .poll_message_set ("Only available in OBJECT mode" )
@@ -1045,7 +1045,7 @@ class SelectedIdsData(NamedTuple):
10451045class OverrideOutlinerDelete (bpy .types .Operator , tool .Ifc .Operator ):
10461046 bl_idname = "bim.override_outliner_delete"
10471047 bl_label = "IFC Delete"
1048- blender_op = bpy .ops .outliner .delete .get_rna_type ()
1048+ blender_op = bpy .ops .outliner .delete .get_rna_type () # ty: ignore[missing-argument]
10491049 bl_description = (
10501050 blender_op .description
10511051 + ".\n Also makes sure changes in sync with IFC."
@@ -1060,7 +1060,7 @@ class OverrideOutlinerDelete(bpy.types.Operator, tool.Ifc.Operator):
10601060 def poll (cls , context ) -> bool :
10611061 # Match `outliner.delete` poll for consistency.
10621062 # `outliner.delete` just checks `area.type` == `OUTLINER`.
1063- poll = bpy .ops .outliner .delete .poll ()
1063+ poll = bpy .ops .outliner .delete .poll () # ty: ignore[missing-argument]
10641064 if poll :
10651065 return True
10661066 cls .poll_message_set ("Only available from Outliner." )
@@ -1164,7 +1164,7 @@ class OverrideDuplicateMove(bpy.types.Operator):
11641164 def poll (cls , context ) -> bool :
11651165 # Match `object.duplicate_move` poll for consistency.
11661166 # `object.duplicate_move` poll checks for OBJECT mode.
1167- poll = bpy .ops .object .duplicate_move .poll ()
1167+ poll = bpy .ops .object .duplicate_move .poll () # ty: ignore[missing-argument]
11681168 if poll :
11691169 return True
11701170 cls .poll_message_set ("Only available in OBJECT mode" )
@@ -1908,7 +1908,7 @@ def handle_selection(
19081908class OverrideJoin (bpy .types .Operator , tool .Ifc .Operator ):
19091909 bl_idname = "bim.override_object_join"
19101910 bl_label = "IFC Join"
1911- blender_op = bpy .ops .mesh .separate .get_rna_type ()
1911+ blender_op = bpy .ops .mesh .separate .get_rna_type () # ty: ignore[missing-argument]
19121912 bl_description = (
19131913 blender_op .description
19141914 + ".\n Also makes sure changes are in sync with IFC."
@@ -1926,7 +1926,7 @@ class OverrideJoin(bpy.types.Operator, tool.Ifc.Operator):
19261926
19271927 @classmethod
19281928 def poll (cls , context ):
1929- if not bpy .ops .object .join .poll ():
1929+ if not bpy .ops .object .join .poll (): # ty: ignore[missing-argument]
19301930 cls .poll_message_set ("Active object is not EDITable." )
19311931 return False
19321932 if not context .selected_editable_objects :
0 commit comments