Update aiogram/filters/callback_data.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Andrew 2025-10-03 14:02:48 +03:00 committed by GitHub
parent b171d4bc2f
commit 34b031968b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ class CallbackData(BaseModel):
msg = f"Bad prefix ({prefix!r} != {cls.__prefix__!r})"
raise ValueError(msg)
payload = {}
for k, v in zip(names, parts, strict=True): # type: str, str | None
for k, v in zip(names, parts, strict=True): # type: str, str
if (
(field := cls.model_fields.get(k))
and v == ""