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 <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Stanislav Levin 2022-02-17 20:32:49 +03:00 committed by Rob Crittenden
parent 14e940990d
commit af8adbb459

View File

@ -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]