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)
downloadqemu-35b9a85adea9f771ca2279ebf7666b243e92f968.zip
qemu-35b9a85adea9f771ca2279ebf7666b243e92f968.tar.gz
qemu-35b9a85adea9f771ca2279ebf7666b243e92f968.tar.bz2
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 d1da985..9b67afd 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.