aiogram/tests/test_filters
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
..
__init__.py Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_base.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00
test_callback_data.py Fix CallbackData without default Optional (#1370) 2023-11-20 22:39:09 +02:00
test_chat_member_updated.py Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
test_command.py ignore_case fix for aiogram.filters.command.Command() (#1107) 2023-02-04 19:52:36 +02:00
test_exception.py Handle expected warnings & raise unexpected warnings (#1315) 2023-10-01 15:28:54 +03:00
test_logic.py Removed Text filter (#1170) 2023-04-22 20:21:17 +03:00
test_magic_data.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00
test_state.py Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00