Skip to content

Commit 13d4dd5

Browse files
Fixed Pylance complaint
1 parent f8e5007 commit 13d4dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reynir/binparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def matcher_so(token: "BIN_Token", terminal: "BIN_Terminal", m: BIN_Tuple) -> bo
150150
if "-" in verb:
151151
verb = verb.rsplit("-", maxsplit=1)[-1]
152152
# TODO: Remove the following cast when Pylance learns to handle @lru_cache()
153-
return cast(bool, token.verb_matches(verb, terminal, m.beyging))
153+
return token.verb_matches(verb, terminal, m.beyging)
154154

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

0 commit comments

Comments
 (0)