Add TYPE_CHECKING to commands/watch.py
MODIFY
plextraktsync/commands/watch.py
plextraktsync/commands/watch.py
-from typing import Union
+from __future__ import annotations
-from trakt.movies import Movie
-from trakt.tv import TVEpisode
+from typing import TYPE_CHECKING
-from plextraktsync.config import Config
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.events import (ActivityNotification, Error,
PlaySessionStateNotification, TimelineEntry)
from plextraktsync.factory import factory, logging
+
+if TYPE_CHECKING:
+ from typing import Union
+
+ from trakt.movies import Movie
+ from trakt.tv import TVEpisode
+
+ from plextraktsync.config import Config
from plextraktsync.media import Media, MediaFactory
-from plextraktsync.plex_api import PlexApi, PlexLibraryItem
-from plextraktsync.trakt_api import TraktApi
+ from plextraktsync.plex.PlexApi import PlexApi
+ from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
+ from plextraktsync.trakt.TraktApi import TraktApi
class ScrobblerCollection(dict):

Add TYPE_CHECKING to commands/watch.py