Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit e71c154

Browse files
committed
фикс типов
1 parent 81c0c5f commit e71c154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymax/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def __init__(
222222
sticker_id: int,
223223
tags: list[str] | None,
224224
width: int,
225-
set_id: int,
225+
set_id: int | None,
226226
time: int,
227227
sticker_type: str,
228228
audio: bool,
@@ -251,7 +251,7 @@ def from_dict(cls, data: dict[str, Any]) -> Self:
251251
sticker_id=data["stickerId"],
252252
tags=data.get("tags"),
253253
width=data["width"],
254-
set_id=data["setId"],
254+
set_id=data.get("setId"),
255255
time=data["time"],
256256
sticker_type=data["stickerType"],
257257
audio=data["audio"],

0 commit comments

Comments
 (0)