OSDN Git Service

python/pylint: disable no-member check
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:46 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
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

index 70957ab..e6407e0 100644 (file)
@@ -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.