Cleanup: quiet unused arg warning
This commit is contained in:
		@@ -1221,7 +1221,7 @@ class CLIP_PT_tools_grease_pencil_draw(AnnotationDrawingToolsPanel, Panel):
 | 
			
		||||
class CLIP_MT_view_zoom(Menu):
 | 
			
		||||
    bl_label = "Fractional Zoom"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        ratios = ((1, 8), (1, 4), (1, 2), (1, 1), (2, 1), (4, 1), (8, 1))
 | 
			
		||||
 
 | 
			
		||||
@@ -129,7 +129,7 @@ class CONSOLE_MT_console(Menu):
 | 
			
		||||
class CONSOLE_MT_context_menu(Menu):
 | 
			
		||||
    bl_label = "Console Context Menu"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        layout.operator("console.clear")
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ class INFO_MT_editor_menus(Menu):
 | 
			
		||||
    bl_idname = "INFO_MT_editor_menus"
 | 
			
		||||
    bl_label = ""
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
        layout.menu("INFO_MT_view")
 | 
			
		||||
        layout.menu("INFO_MT_info")
 | 
			
		||||
@@ -43,7 +43,7 @@ class INFO_MT_editor_menus(Menu):
 | 
			
		||||
class INFO_MT_view(Menu):
 | 
			
		||||
    bl_label = "View"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        layout.menu("INFO_MT_area")
 | 
			
		||||
@@ -52,7 +52,7 @@ class INFO_MT_view(Menu):
 | 
			
		||||
class INFO_MT_info(Menu):
 | 
			
		||||
    bl_label = "Info"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        layout.operator("info.select_all", text="Select All").action = 'SELECT'
 | 
			
		||||
@@ -107,7 +107,7 @@ class INFO_MT_area(Menu):
 | 
			
		||||
class INFO_MT_context_menu(Menu):
 | 
			
		||||
    bl_label = "Info Context Menu"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        layout.operator("info.report_copy", text="Copy")
 | 
			
		||||
 
 | 
			
		||||
@@ -187,7 +187,7 @@ class SEQUENCER_MT_range(Menu):
 | 
			
		||||
class SEQUENCER_MT_preview_zoom(Menu):
 | 
			
		||||
    bl_label = "Fractional Zoom"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
        layout.operator_context = 'INVOKE_REGION_PREVIEW'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -490,7 +490,7 @@ class _defs_edit_mesh:
 | 
			
		||||
 | 
			
		||||
    @ToolDef.from_fn
 | 
			
		||||
    def poly_build():
 | 
			
		||||
        def draw_settings(context, layout, tool):
 | 
			
		||||
        def draw_settings(_context, layout, tool):
 | 
			
		||||
            props = tool.operator_properties("mesh.polybuild_face_at_cursor_move")
 | 
			
		||||
            props_macro = props.MESH_OT_polybuild_face_at_cursor
 | 
			
		||||
            layout.prop(props_macro, "create_quads")
 | 
			
		||||
@@ -987,7 +987,7 @@ class _defs_sculpt:
 | 
			
		||||
 | 
			
		||||
    @ToolDef.from_fn
 | 
			
		||||
    def mesh_filter():
 | 
			
		||||
        def draw_settings(context, layout, tool):
 | 
			
		||||
        def draw_settings(_context, layout, tool):
 | 
			
		||||
            props = tool.operator_properties("sculpt.mesh_filter")
 | 
			
		||||
            layout.prop(props, "type", expand=False)
 | 
			
		||||
            layout.prop(props, "strength")
 | 
			
		||||
 
 | 
			
		||||
@@ -2810,7 +2810,7 @@ class VIEW3D_MT_paint_weight(Menu):
 | 
			
		||||
class VIEW3D_MT_sculpt(Menu):
 | 
			
		||||
    bl_label = "Sculpt"
 | 
			
		||||
 | 
			
		||||
    def draw(self, context):
 | 
			
		||||
    def draw(self, _context):
 | 
			
		||||
        layout = self.layout
 | 
			
		||||
 | 
			
		||||
        props = layout.operator("paint.hide_show", text="Show All")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user