mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
* Fix the ability to copy the state, now copying the state will return the same state. * reformat * full implement deepcopy with memo dict, add typehints * Update aiogram/dispatcher/fsm/state.py Co-authored-by: Oleg A. <t0rr@mail.ru> * update tests Co-authored-by: Oleg A. <t0rr@mail.ru> * remove deepcopy in tests Co-authored-by: Oleg A. <t0rr@mail.ru> * remove deepcopy method Co-authored-by: Oleg A. <t0rr@mail.ru> * update changes description Co-authored-by: Oleg A. <t0rr@mail.ru> * update __eq__ method Co-authored-by: Oleg A. <t0rr@mail.ru> * add typehints, tests * return False for not equal objects creating FilterObject use getfullargspec that check State equality with `type` and `object` builtins, raising Error in `__eq__` method of State break this behavior * return NotImplemented for other types * use `!=` instead of 'not x == y' in tests Co-authored-by: Oleg A. <t0rr@mail.ru> |
||
|---|---|---|
| .. | ||
| test_event | ||
| test_filters | ||
| test_flags | ||
| test_fsm | ||
| test_handler | ||
| test_middlewares | ||
| test_webhook | ||
| __init__.py | ||
| test_dispatcher.py | ||
| test_router.py | ||