aboutsummaryrefslogtreecommitdiff
path: root/python/setup.cfg
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-09-15 12:29:31 -0400
committerJohn Snow <jsnow@redhat.com>2021-09-27 12:10:29 -0400
commit35b9a85adea9f771ca2279ebf7666b243e92f968 (patch)
tree265a3b9014acc52f30aa5f6848190f7faa21f44e /python/setup.cfg
parentfbfb6a37a34fc08f4ff0e5e1e5aab63650af5ed4 (diff)
python/pylint: Add exception for TypeVar names ('T')
'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> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20210915162955.333025-4-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/setup.cfg')
-rw-r--r--python/setup.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/setup.cfg b/python/setup.cfg
index d1da9853a4..9b67afd33e 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -101,6 +101,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.