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, consider-using-with,
fixme, fixme,
import-error, # TODO figure out why pylint cannot find the module import-error, # TODO figure out why pylint cannot find the module
keyword-arg-before-vararg,
line-too-long, line-too-long,
no-else-continue, no-else-continue,
no-else-raise, no-else-raise,

View File

@ -20,7 +20,9 @@ from . import utils
def check_resource(resource_name): def check_resource(resource_name):
def decorator(f): def decorator(f):
@functools.wraps(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): if resource_id is None and kwargs.get(resource_name):
resource_id = kwargs.pop(resource_name) resource_id = kwargs.pop(resource_name)
if isinstance(resource_id, dict): if isinstance(resource_id, dict):

View File

@ -72,7 +72,9 @@ def response(
return res 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 return None