mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
* Add model validation to remove UNSET before field validation Updated aiogram/types/base.py to include a model validator which removes any 'UNSET' before field validation. This change was necessary to correctly handle `parse_mode` where 'UNSET' is used as a sentinel value. Without the removal of 'UNSET', it would create issues when passed to model initialization from `Bot.method_name`. 'UNSET' was also added to typing. Tiny documentation fix was made. * Added changelog |
||
|---|---|---|
| .. | ||
| .template.rst.jinja2 | ||
| 1143.doc.rst | ||
| 1230.removal.rst | ||
| 1232.bugfix.rst | ||
| 1233.bugfix.rst | ||