>=3.10 strict typing (#765)
* >=3.10 * fully typed (mypy strict mode enabled) * fix tests (get_tasteprofile now requires auth - serverside) * update linters * fix uploads search
This commit is contained in:
parent
03acc6ecff
commit
a979691bb0
47 changed files with 717 additions and 503 deletions
|
|
@ -2,7 +2,6 @@ import json
|
|||
import tempfile
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
|
@ -12,11 +11,12 @@ from ytmusicapi.auth.oauth import OAuthToken
|
|||
from ytmusicapi.auth.types import AuthType
|
||||
from ytmusicapi.exceptions import YTMusicUserError
|
||||
from ytmusicapi.setup import main
|
||||
from ytmusicapi.type_alias import JsonDict
|
||||
from ytmusicapi.ytmusic import OAuthCredentials, YTMusic
|
||||
|
||||
|
||||
@pytest.fixture(name="blank_code")
|
||||
def fixture_blank_code() -> dict[str, Any]:
|
||||
def fixture_blank_code() -> JsonDict:
|
||||
return {
|
||||
"device_code": "",
|
||||
"user_code": "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue