Skip to content

Commit

Permalink
Merge pull request #48 from mideind/fix-cast
Browse files Browse the repository at this point in the history
Fix cast
  • Loading branch information
vthorsteinsson authored Mar 23, 2024
2 parents 5524df4 + b5bd606 commit 43a931e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizer/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ def parse_sentences(token_stream: Iterator[Tok]) -> Iterator[Tok]:
exclamation marks, etc.)"""

in_sentence = False
token = cast(Tok, None)
token: Optional[Tok] = None
tok_begin_sentence = TOK.Begin_Sentence()
tok_end_sentence = TOK.End_Sentence()

Expand Down

0 comments on commit 43a931e

Please sign in to comment.