diff mbox series

[PULL,18/32] python/pylint: disable no-member check

Message ID 20210927192513.744199-19-jsnow@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/32] python/aqmp: add asynchronous QMP (AQMP) subpackage | expand

Commit Message

John Snow Sept. 27, 2021, 7:24 p.m. UTC
mypy handles this better -- but we only need the workaround because
pylint under Python 3.6 does not understand that a MutableMapping really
does have a .get() method attached.

We could remove this again once 3.7 is our minimum.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210915162955.333025-19-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
---
 python/setup.cfg | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/python/setup.cfg b/python/setup.cfg
index 70957ab7e4d..e6407e05826 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -90,6 +90,7 @@  ignore_missing_imports = True
 # --disable=W".
 disable=consider-using-f-string,
         too-many-function-args,  # mypy handles this with less false positives.
+        no-member,  # mypy also handles this better.
 
 [pylint.basic]
 # Good variable names which should always be accepted, separated by a comma.