Fix super() call for python3
Use simplified super for python3:
MODIFY
plextraktsync/commands/watch.py
plextraktsync/commands/watch.py
class ScrobblerCollection(dict):
def __init__(self, trakt: TraktApi, threshold=80):
- super(dict, self).__init__()
+ super().__init__()
self.trakt = trakt
self.threshold = threshold
@@ -27,7 +27,7 @@ def __missing__(self, key: Union[Movie, TVEpisode]):
class SessionCollection(dict):
def __init__(self, plex: PlexApi):
- super(dict, self).__init__()
+ super().__init__()
self.plex = plex
def __missing__(self, key: str):

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -93,7 +93,7 @@ def __str__(self):
class PlexRatingCollection(dict):
def __init__(self, plex: PlexApi):
- super(dict, self).__init__()
+ super().__init__()
self.plex = plex
def __missing__(self, section_id: int):

MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -74,7 +74,7 @@ def _post(self, method: str, progress: float):
class TraktRatingCollection(dict):
def __init__(self, trakt: TraktApi):
- super(dict, self).__init__()
+ super().__init__()
self.trakt = trakt
def __missing__(self, media_type: str):

Fix super() call for python3

Use simplified super for python3:
- https://docs.quantifiedcode.com/python-anti-patterns/correctness/bad_first_argument_given_to_super.html