mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +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-with,
|
||||
fixme,
|
||||
function-redefined,
|
||||
import-error, # TODO figure out why pylint cannot find the module
|
||||
invalid-name,
|
||||
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
|
||||
# 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):
|
||||
pass
|
||||
|
||||
class APIError(Exception): # noqa: F811
|
||||
class APIError(Exception): # noqa: F811, pylint: disable=function-redefined
|
||||
pass
|
||||
|
||||
class NotFound(Exception): # noqa: F811
|
||||
class NotFound(Exception): # noqa: F811, pylint: disable=function-redefined
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user