mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update aiogram/dispatcher/fsm/state.py
Co-authored-by: Oleg A. <t0rr@mail.ru>
This commit is contained in:
parent
d565c01569
commit
275416abc0
1 changed files with 5 additions and 2 deletions
|
|
@ -54,8 +54,11 @@ class State:
|
|||
return True
|
||||
return raw_state == self.state
|
||||
|
||||
def __copy__(self) -> "State":
|
||||
return self
|
||||
def __eq__(self, other):
|
||||
return self.state == other.state
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.state)
|
||||
|
||||
def __deepcopy__(self, memo: Dict[int, "State"]) -> "State":
|
||||
memo[id(self)] = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue