Skip to content

Commit

Permalink
fixup! Make pager a function rather property
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 14, 2024
1 parent 9299d3d commit b239494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plextraktsync/plex/PlexLibrarySection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem

if TYPE_CHECKING:
from typing import Literal

from plexapi.library import MovieSection, ShowSection

from plextraktsync.plex.PlexApi import PlexApi
Expand All @@ -21,7 +23,7 @@ def __init__(self, section: ShowSection | MovieSection, plex: PlexApi = None):
self.section = section
self.plex = plex

def pager(self, libtype: str = None):
def pager(self, libtype: Literal["episode"] = None):
from plextraktsync.plex.PlexSectionPager import PlexSectionPager

return PlexSectionPager(section=self.section, plex=self.plex, libtype=libtype)
Expand Down

0 comments on commit b239494

Please sign in to comment.