>=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,6 +2,8 @@ from urllib.parse import urlparse
import pytest
from ytmusicapi.exceptions import YTMusicUserError
class TestLibrary:
def test_get_library_playlists(self, config, yt_oauth, yt_empty):
@ -111,8 +113,8 @@ class TestLibrary:
assert "actions" in response
response = yt_auth.rate_song(sample_video, "INDIFFERENT")
assert response
response = yt_auth.rate_song(sample_video, "notexist")
assert not response
with pytest.raises(YTMusicUserError):
yt_auth.rate_song(sample_video, "notexist")
@pytest.mark.skip(reason="edit_song_library_status is currently broken due to server-side update")
def test_edit_song_library_status(self, yt_brand, sample_album):