Skip to content

Commit

Permalink
Fixed Pylance complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
vthorsteinsson committed Dec 13, 2021
1 parent f8e5007 commit 13d4dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reynir/binparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def matcher_so(token: "BIN_Token", terminal: "BIN_Terminal", m: BIN_Tuple) -> bo
if "-" in verb:
verb = verb.rsplit("-", maxsplit=1)[-1]
# TODO: Remove the following cast when Pylance learns to handle @lru_cache()
return cast(bool, token.verb_matches(verb, terminal, m.beyging))
return token.verb_matches(verb, terminal, m.beyging)

@staticmethod
def matcher_no(token: "BIN_Token", terminal: "BIN_Terminal", m: BIN_Tuple) -> bool:
Expand Down

0 comments on commit 13d4dd5

Please sign in to comment.