85 json.dump(data, jsonfile, indent=2)
86
87
88def main(file_name, arg): 89 # TSV -> CSV
90 if arg == "c":
91 print('Start converting ...')
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
def square(x, y=1):
return x * x
class MySubClass(MyClass):
def __init__(self, number):
self.value = 42 # argument `number` remains unused
def square(x):
return x * x
class MySubClass(MyClass):
def __init__(self, _):
self.value = 42