diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e5508d13..dc9abbe8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,6 +20,6 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: - python-version: "3.11" + python-version: "3.8" - run: pip install mypy==1.8.0 - run: mypy --install-types --non-interactive \ No newline at end of file diff --git a/ytmusicapi/ytmusic.py b/ytmusicapi/ytmusic.py index 53d3f0fe..8f398cc0 100644 --- a/ytmusicapi/ytmusic.py +++ b/ytmusicapi/ytmusic.py @@ -5,7 +5,7 @@ import time from contextlib import suppress from functools import partial -from typing import Dict, Optional +from typing import Dict, Optional, Union import requests from requests import Response @@ -41,7 +41,7 @@ class YTMusicBase: def __init__( self, - auth: Optional[str | Dict] = None, + auth: Optional[Union[str, Dict]] = None, user: Optional[str] = None, requests_session=True, proxies: Optional[Dict[str, str]] = None,