summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-07 14:31:15 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-15 21:14:28 +0100
commit83a5b55c2f0f5c4a54dd4d82f47bcaac266c8a5d (patch)
tree31139ee8494f688dd0d1dd5c111aa3256775c90b
parent3aa504542b370fe230176ab3e5840941e2a6de74 (diff)
downloadpylint-git-83a5b55c2f0f5c4a54dd4d82f47bcaac266c8a5d.tar.gz
Fix E301 expected 1 blank line, found 0
-rw-r--r--pylint/checkers/spelling.py16
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