Update aiogram/dispatcher/fsm/state.py

Co-authored-by: Oleg A. <t0rr@mail.ru>
This commit is contained in:
darksidecat 2022-06-26 12:26:02 +03:00 committed by GitHub
parent d565c01569
commit 275416abc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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