aiogram/CHANGES
darksidecat bc5b26de5f
Add __eq__ and __hash__ methods to State class (#928)
* 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>
2022-07-08 02:26:49 +03:00
..
.template.rst.jinja2 Update towncrier config 2021-08-03 23:50:10 +03:00
894.feature.rst Added possibility to combine filters or invert result (#895) 2022-04-24 04:19:19 +03:00
896.misc.rst #896 Restrict including routers with strings (#897) 2022-04-25 21:24:58 +03:00
901.bugfix.rst #901 Fixed false-positive coercing of Union types in API methods (#912) 2022-05-14 17:27:36 +03:00
906.bugfix.rst #905 Added 3 missing content types (#906) 2022-05-13 23:52:13 +03:00
907.misc.rst Small typo fix (#920) 2022-06-10 11:48:19 +03:00
922.feature.rst Fix type hints for redis TTL params (#922) 2022-06-16 21:43:32 +03:00
927.bugfix.rst Add __eq__ and __hash__ methods to State class (#928) 2022-07-08 02:26:49 +03:00
929.feature.rst Add full_name shortcut for Chat (#929) 2022-06-26 01:50:27 +03:00
936.misc.rst 3.x Bot API 6.1 (#937) 2022-06-25 18:14:29 +03:00
941.misc.rst Remove deprecated methods (#943) 2022-06-25 22:47:08 +03:00
944.misc.rst #944 Rename "extract()" to "extract_from()" for entities (#945) 2022-06-26 01:36:45 +03:00