Add TYPE_CHECKING to Media
MODIFY
plextraktsync/media.py
plextraktsync/media.py
from __future__ import annotations
-from typing import List, Optional
+from typing import TYPE_CHECKING
from plexapi.exceptions import PlexApiException
from requests import RequestException
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.factory import logger
-from plextraktsync.plex_api import PlexApi, PlexGuid, PlexLibraryItem
-from plextraktsync.trakt_api import TraktApi, TraktItem, TraktLookup
+from plextraktsync.trakt_api import TraktLookup
+
+if TYPE_CHECKING:
+ from typing import List, Optional
+
+ from plextraktsync.plex.PlexApi import PlexApi
+ from plextraktsync.plex.PlexGuid import PlexGuid
+ from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
+ from plextraktsync.trakt.TraktApi import TraktApi
+ from plextraktsync.trakt.TraktItem import TraktItem
class Media:

Add TYPE_CHECKING to Media