Skip to content

Commit

Permalink
3.7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Jun 22, 2024
1 parent 6118ea8 commit 5efda42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ def readme():
author_email="[email protected]",
url="https://github.com/7x11x13/soundcloud.py",
packages=["soundcloud", "soundcloud.resource"],
install_requires=["dacite", "python-dateutil>=2.8.2", "requests"],
install_requires=[
"dacite",
"python-dateutil>=2.8.2",
"requests",
"typing-extensions; python_version < '3.8'",
],
extras_require={"test": ["coveralls", "pytest", "pytest-dotenv"], "docs": ["pdoc"]},
classifiers=[
"Programming Language :: Python :: 3.7",
Expand Down
7 changes: 6 additions & 1 deletion soundcloud/resource/graphql.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from dataclasses import dataclass
from typing import List, Literal, Optional
from typing import List, Optional

try:
from typing import Literal
except ImportError:
from typing_extensions import Literal

from soundcloud.resource.base import BaseData
from soundcloud.resource.comment import BasicComment
Expand Down

0 comments on commit 5efda42

Please sign in to comment.