aiogram/CHANGES
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
..
.template.rst.jinja2 Update towncrier config 2021-08-03 23:50:10 +03:00
1493.bugfix.rst Fix handling of default empty string ("") in CallbackData filter (#1493) 2025-03-11 00:14:13 +02:00
1592.misc.rst Refactor: Introduce Union types for streamlined type handling (#1649) 2025-03-08 02:19:57 +02:00
1637.feature.rst Typed data (#1647) 2025-03-02 01:24:30 +02:00
1641.bugfix.rst Fix handler registration order in Scene (#1642) 2025-03-01 22:08:14 +02:00
1648.feature.rst Added support of "startapp" deep links (#1648) 2025-03-08 02:25:50 +02:00
1650.doc.rst Update Ukrainian translation files to match latest API changes (#1650) 2025-03-08 03:02:33 +02:00
1651.feature.rst Added support of "startapp" deep links with "appname" param (#1651) 2025-03-10 02:29:28 +02:00