diff --git a/.pylintrc b/.pylintrc index c0efa2f0..f21cbc81 100644 --- a/.pylintrc +++ b/.pylintrc @@ -391,7 +391,6 @@ disable=raw-checker-failed, redefined-outer-name, # needed for test fixtures subprocess-popen-preexec-fn, unexpected-keyword-arg, - unnecessary-dunder-call, unnecessary-pass, unsupported-assignment-operation, # TODO: needs better typing info unused-argument, diff --git a/plugins/module_utils/_api/context/context.py b/plugins/module_utils/_api/context/context.py index cc27885a..b8a43fb0 100644 --- a/plugins/module_utils/_api/context/context.py +++ b/plugins/module_utils/_api/context/context.py @@ -106,7 +106,7 @@ class Context: self.tls_cfg[name] = tls_cfg def inspect(self): - return self.__call__() + return self() @classmethod def load_context(cls, name):