diff options
author | Robert Hofer <hofrob@protonmail.com> | 2022-10-30 16:26:07 +0100 |
---|---|---|
committer | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-11-09 20:39:00 +0100 |
commit | 0507ee37f45cb3c9dcaf64036dd1b7f3c88ae690 (patch) | |
tree | 7ec3b2adc6e9841ec73d7f4aa5ac58ce36e24808 /doc/user_guide | |
parent | 5ae5842fa02021e086d66218d326c708e6433318 (diff) | |
download | pylint-git-0507ee37f45cb3c9dcaf64036dd1b7f3c88ae690.tar.gz |
Add R1737 use-dict-literal-without-kwargs
Diffstat (limited to 'doc/user_guide')
-rw-r--r-- | doc/user_guide/checkers/features.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/user_guide/checkers/features.rst b/doc/user_guide/checkers/features.rst index 916f8c8f4..07d48d34f 100644 --- a/doc/user_guide/checkers/features.rst +++ b/doc/user_guide/checkers/features.rst @@ -781,9 +781,9 @@ Refactoring checker Messages :consider-swap-variables (R1712): *Consider using tuple unpacking for swapping variables* You do not have to use a temporary variable in order to swap variables. Using "tuple unpacking" to directly swap variables makes the intention more clear. -:use-dict-literal (R1735): *Consider using {} instead of dict()* - Emitted when using dict() to create an empty dictionary instead of the - literal {}. The literal is faster as it avoids an additional function call. +:use-dict-literal (R1735): *Consider using '%s' instead.* + Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. + The literal is faster as it avoids an additional function call. :trailing-comma-tuple (R1707): *Disallow trailing comma tuple* In Python, a tuple is actually created by the comma symbol, not by the parentheses. Unfortunately, one can actually create a tuple by misplacing a |