aiogram/aiogram
m-xim 658f1fc082
Some checks failed
Tests / tests (macos-latest, 3.10) (push) Has been cancelled
Tests / tests (macos-latest, 3.11) (push) Has been cancelled
Tests / tests (macos-latest, 3.12) (push) Has been cancelled
Tests / tests (macos-latest, 3.13) (push) Has been cancelled
Tests / tests (macos-latest, 3.9) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.13) (push) Has been cancelled
Tests / tests (ubuntu-latest, 3.9) (push) Has been cancelled
Tests / tests (windows-latest, 3.10) (push) Has been cancelled
Tests / tests (windows-latest, 3.11) (push) Has been cancelled
Tests / tests (windows-latest, 3.12) (push) Has been cancelled
Tests / tests (windows-latest, 3.13) (push) Has been cancelled
Tests / tests (windows-latest, 3.9) (push) Has been cancelled
Tests / pypy-tests (macos-latest, pypy3.10) (push) Has been cancelled
Tests / pypy-tests (macos-latest, pypy3.9) (push) Has been cancelled
Tests / pypy-tests (ubuntu-latest, pypy3.10) (push) Has been cancelled
Tests / pypy-tests (ubuntu-latest, pypy3.9) (push) Has been cancelled
Fix handling of default empty string ("") in CallbackData filter (#1493)
* Update callback_data.py

Allows using a default value in the class which is equal to an empty string ("").

Example:
class MyCallbackData(CallbackData, prefix="MyCallbackData"):
    input1: str
    input2: str = ""

* Create 1493.bugfix.rst

* Update callback_data.py

Fixed an issue that prevented unpacking None values.

* Added tests for CallbackData

* Update tests/test_filters/test_callback_data.py

Co-authored-by: Oleg A. <t0rr@mail.ru>

* Update test_callback_data.py

* Update callback_data.py

* Update 1493.bugfix.rst

---------

Co-authored-by: Oleg A. <t0rr@mail.ru>
2025-03-11 00:14:13 +02:00
..
client Refactor: Introduce Union types for streamlined type handling (#1649) 2025-03-08 02:19:57 +02:00
dispatcher Typed data (#1647) 2025-03-02 01:24:30 +02:00
enums Added full support for the Bot API 8.3 (#1638) 2025-02-16 22:37:18 +02:00
filters Fix handling of default empty string ("") in CallbackData filter (#1493) 2025-03-11 00:14:13 +02:00
fsm Fix handler registration order in Scene (#1642) 2025-03-01 22:08:14 +02:00
handlers Added full support of Bot API 7.11 (#1601) 2024-11-02 16:13:45 +02:00
methods Refactor: Introduce Union types for streamlined type handling (#1649) 2025-03-08 02:19:57 +02:00
types Refactor: Introduce Union types for streamlined type handling (#1649) 2025-03-08 02:19:57 +02:00
utils Added support of "startapp" deep links with "appname" param (#1651) 2025-03-10 02:29:28 +02:00
webhook Prevent update handling task pointers from being garbage collected, backport of #1328 (#1331) 2023-10-08 18:13:06 +03:00
__init__.py PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
__meta__.py Added full support for the Bot API 8.3 (#1638) 2025-02-16 22:37:18 +02:00
exceptions.py PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
loggers.py PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
py.typed Add py.typed 2020-04-11 22:01:53 +03:00