aiogram/tests/test_fsm
Oleg A e17e3bc71c
Fix CallbackData without default Optional (#1370)
* fix: CallbackData set optional as None

* docs: add fix changelog

* Add support for nullable fields in callback data

This update extends the callback data handling by adding support for nullable fields. The code now uses the Python typing structures `Optional` and `Union` to parse such fields correctly. A helper function `_check_field_is_nullable` has been added to assist in efficiently checking if a given field is nullable.

* Add support for nullable fields in callback data

This update extends the callback data handling by adding support for nullable fields. The code now uses the Python typing structures `Optional` and `Union` to parse such fields correctly. A helper function `_check_field_is_nullable` has been added to assist in efficiently checking if a given field is nullable.

---------

Co-authored-by: JRoot Junior <jroot.junior@gmail.com>
2023-11-20 22:39:09 +02:00
..
storage Fixed Py3.12 tests 2023-11-18 21:28:34 +02:00
__init__.py Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_context.py storage cleanup (#1144) 2023-04-08 18:01:11 +03:00
test_state.py Fix CallbackData without default Optional (#1370) 2023-11-20 22:39:09 +02:00
test_strategy.py Add new FSM strategy CHAT_TOPIC strategy.py (#1344) 2023-10-22 00:41:13 +03:00