Cleanup: resolve pylint warnings

This commit is contained in:
Campbell Barton
2025-09-30 10:45:29 +10:00
parent a40d484b1a
commit ab4a66bd48
3 changed files with 5 additions and 4 deletions

View File

@@ -287,7 +287,8 @@ PYGETTEXT_KEYWORDS = (() +
for it in ("add_input", "add_output")) +
# Node socket declarations: names with contexts
tuple((r"\.{}(?:<decl::.*?>\(|[^,]+,)\s*" + _msg_re + r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it)
tuple((r"\.{}(?:<decl::.*?>\(|[^,]+,)\s*" + _msg_re +
r"[^;]*\.translation_context\(\s*" + _ctxt_re + r"\s*\)").format(it)
for it in ("add_input", "add_output")) +
# Node socket declarations: description and error messages

View File

@@ -181,7 +181,6 @@ class GreasePencilBrushFalloff:
if context.region.type == 'TOOL_HEADER':
col.prop(brush, "curve_distance_falloff_preset", expand=True)
else:
row = col.row(align=True)
col.prop(brush, "curve_distance_falloff_preset", text="")
if brush.curve_distance_falloff_preset == 'CUSTOM':

View File

@@ -7056,7 +7056,7 @@ class VIEW3D_PT_overlay_object(Panel):
sub.prop(overlay, "show_bones", text="Bones")
sub.prop(overlay, "show_motion_paths")
can_show_object_origins = False if mode in {
can_show_object_origins = mode not in {
'PAINT_TEXTURE',
'PAINT_2D',
'SCULPT',
@@ -7066,7 +7066,8 @@ class VIEW3D_PT_overlay_object(Panel):
'PAINT_GREASE_PENCIL',
'VERTEX_GREASE_PENCIL',
'WEIGHT_GREASE_PENCIL',
'SCULPT_GREASE_PENCIL'} else True
'SCULPT_GREASE_PENCIL',
}
subsub = sub.column()
subsub.active = can_show_object_origins
subsub.prop(overlay, "show_object_origins", text="Origins")