Add some typings
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -315,7 +315,7 @@ def collected(self, tm: TVShow):
def find_by_guid(self, guid: PlexGuid):
if guid.type == "episode" and guid.is_episode:
- ts = self.search_by_id(
+ ts: TVShow = self.search_by_id(
guid.show_id, id_type=guid.provider, media_type="show"
)
lookup = TraktLookup(ts)

MODIFY
tests/test_tv_lookup.py
tests/test_tv_lookup.py
@@ -10,7 +10,7 @@ def test_tv_lookup():
make(cls="plexapi.video.Show", guid="imdb://tt10584350", type="show")
)
guid = m.guids[0]
- tm = trakt.find_by_guid(guid)
+ tm: TVShow = trakt.find_by_guid(guid)
lookup = trakt.lookup(tm)
te = lookup[1][2].instance

Add some typings