summaryrefslogtreecommitdiff
path: root/pylint/checkers
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers')
-rw-r--r--pylint/checkers/base.py2
-rw-r--r--pylint/checkers/format.py4
-rw-r--r--pylint/checkers/imports.py4
-rw-r--r--pylint/checkers/spelling.py2
-rw-r--r--pylint/checkers/strings.py4
-rw-r--r--pylint/checkers/typecheck.py6
-rw-r--r--pylint/checkers/variables.py4
7 files changed, 13 insertions, 13 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index d6a59f38b..510b2cdcf 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1816,7 +1816,7 @@ class NameChecker(_BasicChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Include a hint for the correct naming format with invalid-name.",
},
),
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index 7817dba72..d0e4b9914 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -270,7 +270,7 @@ class FormatChecker(BaseTokenChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": (
"Allow the body of an if to be on the same "
"line as the test if there is no else."
@@ -282,7 +282,7 @@ class FormatChecker(BaseTokenChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": (
"Allow the body of a class to be on the same "
"line as the declaration if body contains "
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index 3e0b39d26..65080af15 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -405,7 +405,7 @@ class ImportsChecker(DeprecatedMixin, BaseChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Analyse import fallback blocks. This can be used to "
"support both Python 2 and 3 compatible code, which "
"means that the block might have code that exists "
@@ -418,7 +418,7 @@ class ImportsChecker(DeprecatedMixin, BaseChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Allow wildcard imports from modules that define __all__.",
},
),
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py
index b26b5edd6..082e21183 100644
--- a/pylint/checkers/spelling.py
+++ b/pylint/checkers/spelling.py
@@ -259,7 +259,7 @@ class SpellingChecker(BaseTokenChecker):
{
"default": "n",
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Tells whether to store unknown words to the "
"private dictionary (see the "
"--spelling-private-dict-file option) instead of "
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py
index cc3ecce89..7df0d6052 100644
--- a/pylint/checkers/strings.py
+++ b/pylint/checkers/strings.py
@@ -681,7 +681,7 @@ class StringConstantChecker(BaseTokenChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "This flag controls whether the "
"implicit-str-concat should generate a warning "
"on implicit string concatenation in sequences defined over "
@@ -693,7 +693,7 @@ class StringConstantChecker(BaseTokenChecker):
{
"default": False,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "This flag controls whether inconsistent-quotes generates a "
"warning when the character used as a quote delimiter is used "
"inconsistently within a module.",
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index 549cd7f4c..e2af03e55 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -777,7 +777,7 @@ class TypeChecker(BaseChecker):
{
"default": True,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "This flag controls whether pylint should warn about "
"no-member and similar checks whenever an opaque object "
"is returned when inferring. The inference can return "
@@ -802,7 +802,7 @@ class TypeChecker(BaseChecker):
{
"default": True,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Tells whether missing members accessed in mixin "
"class should be ignored. A class is considered mixin if its name matches "
"the mixin-class-rgx option.",
@@ -813,7 +813,7 @@ class TypeChecker(BaseChecker):
{
"default": True,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Tells whether to warn about missing members when the owner "
"of the attribute is inferred to be None.",
},
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 360b0af55..3ae5957c7 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -629,7 +629,7 @@ class VariablesChecker(BaseChecker):
{
"default": 0,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Tells whether we should check for unused import in "
"__init__ files.",
},
@@ -697,7 +697,7 @@ class VariablesChecker(BaseChecker):
{
"default": True,
"type": "yn",
- "metavar": "<y_or_n>",
+ "metavar": "<y or n>",
"help": "Tells whether unused global variables should be treated as a violation.",
},
),