improve start/end typing

This commit is contained in:
2025-12-10 04:13:01 +01:00
parent d4febbc3b2
commit 906b07e20c
3 changed files with 17 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
from pydantic import BaseModel
from pydantic import BaseModel, NonNegativeInt
from pypresence.types import ActivityType
from typing import Optional
@@ -9,6 +9,6 @@ class DiscordRPCUpdatePayload(BaseModel):
subtitle: str
image_url: str
details: str
start: Optional[int]
end: Optional[int]
start: Optional[NonNegativeInt]
end: Optional[NonNegativeInt]
activity_type: ActivityType