improve typing

This commit is contained in:
2025-12-10 03:36:34 +01:00
parent d0fcb3e57c
commit b91e0e1002
2 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
from pydantic import BaseModel
from enum import Enum
from typing import Optional
class JellyfinMediaType(str, Enum):
@@ -13,6 +14,6 @@ class JellyfinMediaItem(BaseModel):
name: str
type: JellyfinMediaType
image_url: str
start: int | None
end: int | None
start: Optional[int]
end: Optional[int]
metadata: dict