Add typing to reload_item to avoid mistakes
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -438,7 +438,7 @@ def fetch_item(self, key: Union[int, str]):
media = self.plex.library.fetchItem(key)
return PlexLibraryItem(media)
- def reload_item(self, pm):
+ def reload_item(self, pm: PlexLibraryItem):
self.fetch_item.cache_clear()
return self.fetch_item(pm.item.ratingKey)

Add typing to reload_item to avoid mistakes