Cleanup: unused args/vars/imports in modules

This commit is contained in:
2019-05-09 13:11:36 +10:00
parent fc37238b17
commit 7465a5db3b
14 changed files with 30 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ import bpy
class NodeCategory:
@classmethod
def poll(cls, context):
def poll(cls, _context):
return True
def __init__(self, identifier, name, description="", items=None):
@@ -80,7 +80,7 @@ class NodeItem:
# NB: is a staticmethod because called with an explicit self argument
# NodeItemCustom sets this as a variable attribute in __init__
@staticmethod
def draw(self, layout, context):
def draw(self, layout, _context):
props = layout.operator("node.add_node", text=self.label, text_ctxt=self.translation_context)
props.type = self.nodetype
props.use_transform = True