9
10
11@register
12def check_machinery(app_configs, **kwargs):13 from weblate.machinery.models import MACHINERY
14
15 # Needed to load the data
16
17
18@register
19def check_git_backend(app_configs, **kwargs):20 if find_git_http_backend() is None:
21 return [
22 weblate_check(
13
14
15@register(deploy=True)
16def check_avatars(app_configs, **kwargs):17 if not settings.ENABLE_AVATARS:
18 return []
19 try:
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