improve typing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user