From af8adbb459eb131d7879e86edc97562b2973a4a7 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Thu, 17 Feb 2022 20:32:49 +0300 Subject: [PATCH] pylint: Skip use-dict-literal/use-list-literal Pylint 2.10 introduced new checkers: > Emitted when using dict() to create an empty dictionary instead of the literal {}. The literal is faster as it avoids an additional function call. > Emitted when using list() to create an empty list instead of the literal []. The literal is faster as it avoids an additional function call. Too many unessential changes. Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin Reviewed-By: Rob Crittenden --- pylintrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylintrc b/pylintrc index 8125aaf62..b0e5fe61c 100644 --- a/pylintrc +++ b/pylintrc @@ -110,6 +110,8 @@ disable= consider-using-min-builtin, # pylint 2.8.0, can be more readable redundant-u-string-prefix, # pylint 2.10.0, too many unessential changes consider-using-f-string, # pylint 2.11.0, format can be more readable + use-dict-literal, # pylint 2.10.0 dict vs {} + use-list-literal, # pylint 2.10.0 list() vs [] [REPORTS]