Skip to content

Commit

Permalink
Update attacut.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bact authored Sep 9, 2019
1 parent 21871bc commit 23ba97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythainlp/tokenize/attacut.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
:See Also:
* `GitHub repository <https://github.com/PyThaiNLP/attacut>`_
"""
from typing import List, Union
from typing import List

import attacut


def segment(text: str):
def segment(text: str) -> List[str]:
if not text or not isinstance(text, str):
return []

Expand Down

0 comments on commit 23ba97e

Please sign in to comment.