>=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:
sigma67 2025-04-17 16:05:34 +02:00 • committed by GitHub
commit a979691bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 717 additions and 503 deletions

View file

@ -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": "",