From 1e9c954b0b9d5a72dc265d52827b08f83eb2a4e0 Mon Sep 17 00:00:00 2001 From: darksidecat <58224121+darksidecat@users.noreply.github.com> Date: Sun, 26 Jun 2022 13:51:00 +0300 Subject: [PATCH] remove deepcopy method Co-authored-by: Oleg A. --- aiogram/dispatcher/fsm/state.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/aiogram/dispatcher/fsm/state.py b/aiogram/dispatcher/fsm/state.py index 8cec3ac4..18f7520e 100644 --- a/aiogram/dispatcher/fsm/state.py +++ b/aiogram/dispatcher/fsm/state.py @@ -60,9 +60,6 @@ class State: def __hash__(self): return hash(self.state) - def __deepcopy__(self, memo: Dict[int, "State"]) -> "State": - memo[id(self)] = self - return self class StatesGroupMeta(type):