Skip to content

Commit

Permalink
pylint: Skip use-dict-literal/use-list-literal
Browse files Browse the repository at this point in the history
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: freeipa#244
Signed-off-by: Stanislav Levin <[email protected]>
  • Loading branch information
stanislavlevin committed Feb 25, 2022
1 parent dc4bc86 commit 110b80b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,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]

Expand Down

0 comments on commit 110b80b

Please sign in to comment.