diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-07 14:31:15 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-15 21:14:28 +0100 |
commit | 83a5b55c2f0f5c4a54dd4d82f47bcaac266c8a5d (patch) | |
tree | 31139ee8494f688dd0d1dd5c111aa3256775c90b /pylint/checkers/spelling.py | |
parent | 3aa504542b370fe230176ab3e5840941e2a6de74 (diff) | |
download | pylint-git-83a5b55c2f0f5c4a54dd4d82f47bcaac266c8a5d.tar.gz |
Fix E301 expected 1 blank line, found 0
Diffstat (limited to 'pylint/checkers/spelling.py')
-rw-r--r-- | pylint/checkers/spelling.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index ab806c808..e8d00381a 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -32,7 +32,7 @@ from pylint.interfaces import IAstroidChecker, ITokenChecker try: import enchant - from enchant.tokenize import ( # type: ignore + from enchant.tokenize import ( Chunker, EmailFilter, Filter, @@ -42,7 +42,19 @@ try: ) except ImportError: enchant = None - # pylint: disable=no-init + + class EmailFilter: # type: ignore + ... + + class URLFilter: # type: ignore + ... + + class WikiWordFilter: # type: ignore + ... + + def get_tokenizer(_): + ... + class Filter: # type: ignore def _skip(self, word): raise NotImplementedError |