Skip to content

Commit

Permalink
fix #504 (#506)
Browse files Browse the repository at this point in the history
* run mypy on 3.8

* fix #504
  • Loading branch information
sigma67 committed Jan 6, 2024
1 parent 4d5c9e0 commit dcddfa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions ytmusicapi/ytmusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dcddfa5

Please sign in to comment.