Address function-redefined.

This commit is contained in:
Felix Fontein 2025-10-07 22:14:30 +02:00
parent 2803a5bf2f
commit 057b04b90b
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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