mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 10:53:23 +00:00
Modified the ".as_" method in the magic filter class to correctly handle values that are interpreted as `False` such as `0`. Previously, the method incorrectly dismissed these valid values. The issue was identified and fixed to ensure correct handling of all valid data inputs.
This commit is contained in:
parent
bff2ed0a86
commit
ee8e457c5f
3 changed files with 17 additions and 2 deletions
1
CHANGES/1281.bugfix.rst
Normal file
1
CHANGES/1281.bugfix.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fixed magic :code:`.as_(...)` operation for values that can be interpreted as `False` (e.g. `0`).
|
||||
Loading…
Add table
Add a link
Reference in a new issue