Address keyword-arg-before-vararg.

This commit is contained in:
Felix Fontein 2025-10-11 14:51:10 +02:00
parent ae0dba8490
commit d04a770441
3 changed files with 6 additions and 3 deletions

View File

@ -384,7 +384,6 @@ disable=raw-checker-failed,
consider-using-with,
fixme,
import-error, # TODO figure out why pylint cannot find the module
keyword-arg-before-vararg,
line-too-long,
no-else-continue,
no-else-raise,

View File

@ -20,7 +20,9 @@ from . import utils
def check_resource(resource_name):
def decorator(f):
@functools.wraps(f)
def wrapped(self, resource_id=None, *args, **kwargs):
def wrapped(
self, resource_id=None, *args, **kwargs
): # pylint: disable=keyword-arg-before-vararg
if resource_id is None and kwargs.get(resource_name):
resource_id = kwargs.pop(resource_name)
if isinstance(resource_id, dict):

View File

@ -72,7 +72,9 @@ def response(
return res
def fake_resolve_authconfig(authconfig, registry=None, *args, **kwargs):
def fake_resolve_authconfig(
authconfig, registry=None, *args, **kwargs
): # pylint: disable=keyword-arg-before-vararg
return None