Add typing to ScrobblerProxy
+from typing import Union
+
+from trakt.movies import Movie
+from trakt.tv import TVEpisode
+
from plextraktsync.config import Config
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.events import (ActivityNotification, Error,
@@ -16,7 +21,7 @@ def __init__(self, trakt: TraktApi, threshold=80):
self.trakt = trakt
self.threshold = threshold
- def __missing__(self, key):
+ def __missing__(self, key: Union[Movie, TVEpisode]):
self[key] = value = self.trakt.scrobbler(key, self.threshold)
return value
