mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
return NotImplemented for other types
This commit is contained in:
parent
c952a730c2
commit
36fbfc06d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue