Cleanup: quiet Python linter warnings

This commit is contained in:
Campbell Barton
2024-12-11 11:26:24 +11:00
parent 560b6e2831
commit a7bc3e3418
25 changed files with 49 additions and 38 deletions

View File

@@ -174,7 +174,7 @@ def is_ignore_dna_name(name):
return False
def write_member(fw, indent, b, theme, ls):
def write_member(fw, indent, _blend, _theme, ls):
path_old = ()
for key, value in ls:

View File

@@ -30,7 +30,7 @@ class PrintStructC99(gdb.Command):
first_line = string.split('\n')[0]
return first_line.split('=')[1][:-1].strip()
def invoke(self, arg, from_tty):
def invoke(self, arg, _from_tty):
ret_ptype = gdb.execute('ptype {}'.format(arg), to_string=True)
tname = self.extract_typename(ret_ptype)
print('{} {} = {{'.format(tname, arg))

View File

@@ -292,7 +292,7 @@ class App:
def main() -> int:
root = Tk()
app = App(root)
_app = App(root)
root.title("Cursor Maker")
root.mainloop()