From b23949415e940fe34163d984b470cb42c35d2055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 14 Jan 2024 22:50:04 +0200 Subject: [PATCH] fixup! Make pager a function rather property --- plextraktsync/plex/PlexLibrarySection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plextraktsync/plex/PlexLibrarySection.py b/plextraktsync/plex/PlexLibrarySection.py index d1b940d446c..45d1f6fcaab 100644 --- a/plextraktsync/plex/PlexLibrarySection.py +++ b/plextraktsync/plex/PlexLibrarySection.py @@ -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 @@ -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)