diff options
author | Eli Fine <eli88fine@gmail.com> | 2021-04-09 13:08:58 -0400 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-10 08:36:29 +0200 |
commit | 3c105a4c6f552082fbadfd3f535a1daaa2eaa973 (patch) | |
tree | 8386d4996d62ddda98419909143f748fca73bd0c | |
parent | c6e7d169b979806a67db8d31280589a5d1834f4b (diff) | |
download | pylint-git-3c105a4c6f552082fbadfd3f535a1daaa2eaa973.tar.gz |
Update pylint/checkers/spelling.py
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
-rw-r--r-- | pylint/checkers/spelling.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 341352d38..bb2e30011 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -182,9 +182,8 @@ CODE_FLANKED_IN_BACKTICK_REGEX = re.compile(r"(\s|^)(`{1,2})([^`]+)(\2)([^`]|$)" def _strip_code_flanked_in_backticks(line: str) -> str: """Alter line so code flanked in backticks is ignored. - Pyenchant automatically strips backticks when parsing tokens, so this cannot be done at the individual filter level. - - """ + Pyenchant automatically strips backticks when parsing tokens, + so this cannot be done at the individual filter level.""" def replace_code_but_leave_surrounding_characters(match_obj) -> str: return match_obj.group(1) + match_obj.group(5) |