[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/20] python/pylint: Add exception for TypeVar names ('T')
From: |
John Snow |
Subject: |
[PATCH 01/20] python/pylint: Add exception for TypeVar names ('T') |
Date: |
Thu, 1 Jul 2021 00:12:54 -0400 |
'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 --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.
--
2.31.1
- [PATCH 00/20] python: introduce Asynchronous QMP package, John Snow, 2021/07/01
- [PATCH 03/20] python/aqmp: add asynchronous QMP (AQMP) subpackage, John Snow, 2021/07/01
- [PATCH 01/20] python/pylint: Add exception for TypeVar names ('T'),
John Snow <=
- [PATCH 04/20] python/aqmp: add error classes, John Snow, 2021/07/01
- [PATCH 02/20] python/pylint: disable too-many-function-args, John Snow, 2021/07/01
- [PATCH 05/20] python/aqmp: add asyncio compatibility wrappers, John Snow, 2021/07/01
- [PATCH 07/20] python/aqmp: add runstate state machine to AsyncProtocol, John Snow, 2021/07/01
- [PATCH 08/20] python/aqmp: add logging to AsyncProtocol, John Snow, 2021/07/01
- [PATCH 06/20] python/aqmp: add generic async message-based protocol support, John Snow, 2021/07/01
- [PATCH 09/20] python/aqmp: add AsyncProtocol.accept() method, John Snow, 2021/07/01
- [PATCH 11/20] python/aqmp: add AsyncProtocol._readline() method, John Snow, 2021/07/01
- [PATCH 10/20] python/aqmp: add _cb_inbound and _cb_inbound logging hooks, John Snow, 2021/07/01
- [PATCH 13/20] python/aqmp: add well-known QMP object models, John Snow, 2021/07/01