summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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