PlexLibraryItem: Add imports for typing only
MODIFY
plextraktsync/plex/PlexLibraryItem.py
plextraktsync/plex/PlexLibraryItem.py
from __future__ import annotations
import datetime
-from typing import List, Union
+from typing import TYPE_CHECKING
-from plexapi.media import AudioStream, MediaPart, SubtitleStream, VideoStream
-from plexapi.video import Episode, Movie, Show
+from plexapi.media import AudioStream, SubtitleStream, VideoStream
from trakt.utils import timestamp
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.decorators.retry import retry
from plextraktsync.factory import factory
+if TYPE_CHECKING:
+ from typing import List, Union
+
+ from plexapi.media import MediaPart
+ from plexapi.video import Episode, Movie, Show
+
class PlexLibraryItem:
def __init__(self, item: Union[Movie, Show, Episode], plex=None):

PlexLibraryItem: Add imports for typing only