Skip to content

Commit f98805e

Browse files
authored
Fix typo in missing-member-hint-distance documentation (#10314)
1 parent cdefbee commit f98805e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
603603
# of finding the hint is based on edit distance.
604604
missing-member-hint=yes
605605

606-
# The minimum edit distance a name should have in order to be considered a
606+
# The maximum edit distance a name should have in order to be considered a
607607
# similar match for a missing member name.
608608
missing-member-hint-distance=1
609609

examples/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ ignored-classes = [ "optparse.Values", "thread._local", "_thread._local", "argpa
533533
# finding the hint is based on edit distance.
534534
missing-member-hint = true
535535

536-
# The minimum edit distance a name should have in order to be considered a
536+
# The maximum edit distance a name should have in order to be considered a
537537
# similar match for a missing member name.
538538
missing-member-hint-distance = 1
539539

pylint/checkers/typecheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ class TypeChecker(BaseChecker):
956956
"default": 1,
957957
"type": "int",
958958
"metavar": "<member hint edit distance>",
959-
"help": "The minimum edit distance a name should have in order "
959+
"help": "The maximum edit distance a name should have in order "
960960
"to be considered a similar match for a missing member name.",
961961
},
962962
),

pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ ignore-on-opaque-inference=yes
378378
# of finding the hint is based on edit distance.
379379
missing-member-hint=yes
380380

381-
# The minimum edit distance a name should have in order to be considered a
381+
# The maximum edit distance a name should have in order to be considered a
382382
# similar match for a missing member name.
383383
missing-member-hint-distance=1
384384

0 commit comments

Comments
 (0)