Fix typing of _guid_match
@@ -221,7 +221,7 @@ def resolve_trakt(self, tm: TraktItem) -> Media:
pm = self._guid_match(result, tm)
return Media(pm, tm.item, plex_api=self.plex, trakt_api=self.trakt)
- def _guid_match(self, candidates: List[PlexLibraryItem], tm: TraktItem) -> PlexLibraryItem:
+ def _guid_match(self, candidates: List[PlexLibraryItem], tm: TraktItem) -> Optional[PlexLibraryItem]:
if candidates:
for pm in candidates:
for guid in pm.guids:
