diff mbox series

[01/20] python/pylint: Add exception for TypeVar names ('T')

Message ID 20210701041313.1696009-2-jsnow@redhat.com (mailing list archive)
State New, archived
Headers show
Series python: introduce Asynchronous QMP package | expand

Commit Message

John Snow July 1, 2021, 4:12 a.m. UTC
'T' is a common TypeVar name, allow its use.

See also https://github.com/PyCQA/pylint/issues/3401 -- In the future,
we might be able to have a separate list of acceptable names for
TypeVars exclusively.

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 11f71d5312..cfbe17f0f6 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -100,6 +100,7 @@  good-names=i,
            fh,  # fh = open(...)
            fd,  # fd = os.open(...)
            c,   # for c in string: ...
+           T,   # for TypeVars. See pylint#3401
 
 [pylint.similarities]
 # Ignore imports when computing similarities.