mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-17 01:28:35 +00:00
Address function-redefined.
This commit is contained in:
parent
2803a5bf2f
commit
057b04b90b
@ -391,7 +391,6 @@ disable=raw-checker-failed,
|
|||||||
consider-using-max-builtin,
|
consider-using-max-builtin,
|
||||||
consider-using-with,
|
consider-using-with,
|
||||||
fixme,
|
fixme,
|
||||||
function-redefined,
|
|
||||||
import-error, # TODO figure out why pylint cannot find the module
|
import-error, # TODO figure out why pylint cannot find the module
|
||||||
invalid-name,
|
invalid-name,
|
||||||
keyword-arg-before-vararg,
|
keyword-arg-before-vararg,
|
||||||
|
|||||||
@ -101,14 +101,14 @@ if not HAS_DOCKER_PY:
|
|||||||
|
|
||||||
# No Docker SDK for Python. Create a place holder client to allow
|
# No Docker SDK for Python. Create a place holder client to allow
|
||||||
# instantiation of AnsibleModule and proper error handing
|
# instantiation of AnsibleModule and proper error handing
|
||||||
class Client(object): # noqa: F811
|
class Client(object): # noqa: F811, pylint: disable=function-redefined
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class APIError(Exception): # noqa: F811
|
class APIError(Exception): # noqa: F811, pylint: disable=function-redefined
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NotFound(Exception): # noqa: F811
|
class NotFound(Exception): # noqa: F811, pylint: disable=function-redefined
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user