diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-24 22:03:11 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-28 22:48:56 +0200 |
commit | 477ac77d37f6d108fb00a79cc2aef67d4f775f0d (patch) | |
tree | 788c923ce4167b98e524bf9f62b2b462c99c4792 | |
parent | 77a16a6f3a8460ee12c49e057c7f637927b81455 (diff) | |
download | pylint-git-477ac77d37f6d108fb00a79cc2aef67d4f775f0d.tar.gz |
Fix kwargs is not a supported in function get_tokenizer
-rw-r--r-- | pylint/checkers/spelling.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index b9981b215..66cf53a52 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -53,9 +53,6 @@ except ImportError: class WikiWordFilter: # type: ignore ... - def get_tokenizer(_): - ... - class Filter: # type: ignore def _skip(self, word): raise NotImplementedError @@ -63,6 +60,11 @@ except ImportError: class Chunker: # type: ignore pass + def get_tokenizer( + tag=None, chunkers=None, filters=None + ): # pylint: disable=unused-argument + return Filter() + if enchant is not None: br = enchant.Broker() @@ -74,7 +76,7 @@ if enchant is not None: else: dicts = "none" dict_choices = [""] - instr = " To make it work, install the python-enchant package." + instr = " To make it work, install the 'python-enchant' package." class WordsWithDigigtsFilter(Filter): |