Skip to content

Commit

Permalink
Fix kwargs is not a supported in function get_tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Mar 25, 2021
1 parent 35b8238 commit 59154d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pylint/checkers/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ class URLFilter: # type: ignore
class WikiWordFilter: # type: ignore
...

def get_tokenizer(_):
...

class Filter: # type: ignore
def _skip(self, word):
raise NotImplementedError

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()
Expand All @@ -74,7 +76,7 @@ class Chunker: # type: ignore
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):
Expand Down

0 comments on commit 59154d4

Please sign in to comment.