mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-15 19:58:28 +00:00
Address keyword-arg-before-vararg.
This commit is contained in:
parent
ae0dba8490
commit
d04a770441
@ -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,
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user