Skip to content

Commit 4117389

Browse files
[doc] Remove hard-coded default in 'ignored-argument-names' description (#7239)
1 parent 36a6723 commit 4117389

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

doc/user_guide/configuration/all-options.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ Standard Checkers
15231523

15241524
--ignored-argument-names
15251525
""""""""""""""""""""""""
1526-
*Argument names that match this expression will be ignored. Default to name with leading underscore.*
1526+
*Argument names that match this expression will be ignored.*
15271527

15281528
**Default:** ``re.compile('_.*|^ignored_|^unused_')``
15291529

examples/pylintrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ callbacks=cb_,
468468
# not be used).
469469
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
470470

471-
# Argument names that match this expression will be ignored. Default to name
472-
# with leading underscore.
471+
# Argument names that match this expression will be ignored.
473472
ignored-argument-names=_.*|^ignored_|^unused_
474473

475474
# Tells whether we should check for unused import in __init__ files.

examples/pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,7 @@ callbacks = ["cb_", "_cb"]
509509
# be used).
510510
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
511511

512-
# Argument names that match this expression will be ignored. Default to name with
513-
# leading underscore.
512+
# Argument names that match this expression will be ignored.
514513
ignored-argument-names = "_.*|^ignored_|^unused_"
515514

516515
# Tells whether we should check for unused import in __init__ files.

pylint/checkers/variables.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,7 @@ class VariablesChecker(BaseChecker):
10561056
"default": IGNORED_ARGUMENT_NAMES,
10571057
"type": "regexp",
10581058
"metavar": "<regexp>",
1059-
"help": "Argument names that match this expression will be "
1060-
"ignored. Default to name with leading underscore.",
1059+
"help": "Argument names that match this expression will be ignored.",
10611060
},
10621061
),
10631062
(

0 commit comments

Comments
 (0)