From: Christian Heller Date: Sat, 20 Sep 2025 06:27:23 +0000 (+0200) Subject: Fix mypy error. X-Git-Url: https://plomlompom.com/repos/booking/do_day?a=commitdiff_plain;p=ircplom Fix mypy error. --- diff --git a/ircplom/msg_parse_expectations.py b/ircplom/msg_parse_expectations.py index a394e48..9141836 100644 --- a/ircplom/msg_parse_expectations.py +++ b/ircplom/msg_parse_expectations.py @@ -106,7 +106,8 @@ class _MsgParseExpectation: for idx, ex_tok in enumerate(ex_fields)]: if isinstance(ex_tok.type_, str) and ex_tok.type_ != cmp_tok: return None - if ex_tok.type_ in validators\ + if (not isinstance(ex_tok.type_, str))\ + and ex_tok.type_ in validators\ and not validators[ex_tok.type_](cmp_tok): return None if ex_tok.code or ex_tok.type_ is _MsgTok.NICK_USER_HOST: