Skip to content

Commit

Permalink
should not drop python 3.7 style typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
mocobeta committed Jul 1, 2023
1 parent 8b345cf commit f2556c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janome/tokenfilter.py
Expand Up @@ -123,7 +123,7 @@ class WordStopFilter(TokenFilter):
Added in *version 0.5.0*
"""

def __init__(self, stop_words: list[str]):
def __init__(self, stop_words: List[str]):
"""
Initialize WordStopFilter object.
Expand All @@ -145,7 +145,7 @@ class WordKeepFilter(TokenFilter):
Added in *version 0.5.0*
"""

def __init__(self, keep_words: list[str]) -> None:
def __init__(self, keep_words: List[str]) -> None:
"""
Initialize WordKeepFilter object.
Expand Down

0 comments on commit f2556c3

Please sign in to comment.