Skip to content

Commit

Permalink
Merge pull request #1865 from glensc/marker-type
Browse files Browse the repository at this point in the history
Fix: Fix return type of PlexLibraryItem.markers
  • Loading branch information
glensc authored Mar 17, 2024
2 parents c10f3aa + 60a36c9 commit 89c1164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plextraktsync/plex/PlexLibraryItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from plextraktsync.util.Rating import Rating

if TYPE_CHECKING:
from plexapi.media import MediaPart
from plexapi.media import Marker, MediaPart

from plextraktsync.plex.PlexApi import PlexApi
from plextraktsync.plex.types import PlexMedia
Expand Down Expand Up @@ -167,7 +167,7 @@ def collected_at(self):
return self.date_value(self.item.addedAt)

@property
def markers(self) -> list[MediaPart]:
def markers(self) -> list[Marker]:
try:
return self.item.markers
except AttributeError:
Expand Down

0 comments on commit 89c1164

Please sign in to comment.