Skip to content

Commit 59d4c26

Browse files
Fix typo in missing-member-hint-distance documentation (#10314) (#10315)
(cherry picked from commit f98805e) Co-authored-by: correctmost <134317971+correctmost@users.noreply.github.com>
1 parent 46460d8 commit 59d4c26

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
600600
# of finding the hint is based on edit distance.
601601
missing-member-hint=yes
602602

603-
# The minimum edit distance a name should have in order to be considered a
603+
# The maximum edit distance a name should have in order to be considered a
604604
# similar match for a missing member name.
605605
missing-member-hint-distance=1
606606

examples/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ ignored-classes = [ "optparse.Values", "thread._local", "_thread._local", "argpa
529529
# finding the hint is based on edit distance.
530530
missing-member-hint = true
531531

532-
# The minimum edit distance a name should have in order to be considered a
532+
# The maximum edit distance a name should have in order to be considered a
533533
# similar match for a missing member name.
534534
missing-member-hint-distance = 1
535535

pylint/checkers/typecheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ class TypeChecker(BaseChecker):
960960
"default": 1,
961961
"type": "int",
962962
"metavar": "<member hint edit distance>",
963-
"help": "The minimum edit distance a name should have in order "
963+
"help": "The maximum edit distance a name should have in order "
964964
"to be considered a similar match for a missing member name.",
965965
},
966966
),

pylintrc

Lines changed: 1 addition & 1 deletion
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)