From 36fbfc06d5092780fac1695bbec005446ad18766 Mon Sep 17 00:00:00 2001 From: darksidecat Date: Sun, 26 Jun 2022 17:12:54 +0300 Subject: [PATCH] return NotImplemented for other types --- aiogram/dispatcher/fsm/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/fsm/state.py b/aiogram/dispatcher/fsm/state.py index 5a4f4075..6c76913f 100644 --- a/aiogram/dispatcher/fsm/state.py +++ b/aiogram/dispatcher/fsm/state.py @@ -59,7 +59,7 @@ class State: return self.state == other.state if isinstance(other, str): return self.state == other - return False + return NotImplemented def __hash__(self) -> int: return hash(self.state)