Skip to content

Commit

Permalink
Restore compat with py 3.6
Browse files Browse the repository at this point in the history
    from trakt.users import User
E     File "/home/runner/work/python-pytrakt/python-pytrakt/trakt/users.py", line 3
E       from __future__ import annotations
E                                        ^
E   SyntaxError: future feature annotations is not defined
  • Loading branch information
glensc committed Feb 29, 2024
1 parent 09b96bb commit ef624e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trakt/users.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
"""Interfaces to all of the User objects offered by the Trakt.tv API"""
from __future__ import annotations

from dataclasses import dataclass
from typing import Any, NamedTuple, Optional, Union

Expand Down Expand Up @@ -134,7 +132,7 @@ def __len__(self):

@classmethod
@get
def load(cls, id: int) -> Union[ListEntry, PublicList]:
def load(cls, id: int) -> Union[ListEntry, "PublicList"]:
"""
https://trakt.docs.apiary.io/#reference/lists/list/get-list
"""
Expand Down

0 comments on commit ef624e9

Please sign in to comment.