mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-03 02:04:14 +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,
|
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,
|
||||||
|
|||||||
@ -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):
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user