Cleanup: use static sets for contains checks, remove f-string use

This commit is contained in:
Campbell Barton
2024-02-28 11:02:49 +11:00
parent f04bd961fd
commit 4f8db2ee67
6 changed files with 8 additions and 8 deletions

View File

@@ -593,7 +593,7 @@ class BONE_PT_custom_props(BoneButtonsPanel, rna_prop_ui.PropertyPanel, Panel):
return "active_pose_bone"
bone_path = obj.pose.bones[context.bone.name].path_from_id()
return f"object.{bone_path}"
return "object." + bone_path
classes = (

View File

@@ -1086,7 +1086,7 @@ class NODE_PT_repeat_zone_items(Panel):
if snode is None:
return False
node = context.active_node
if node is None or node.bl_idname not in (cls.input_node_type, cls.output_node_type):
if node is None or node.bl_idname not in {cls.input_node_type, cls.output_node_type}:
return False
if cls.get_output_node(context) is None:
return False