Skip to content

Commit b52dc6f

Browse files
⬆️ Update dependency ruff to v0.12.8 (#600)
* ⬆️ Update dependency ruff to v0.12.8 * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Joostlek <joostlek@outlook.com>
1 parent 06970dd commit b52dc6f

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

poetry.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pylint = "3.3.8"
4242
pytest = "8.4.1"
4343
pytest-asyncio = "1.1.0"
4444
pytest-cov = "6.2.1"
45-
ruff = "0.11.13"
45+
ruff = "0.12.8"
4646
safety = "3.6.0"
4747
yamllint = "1.37.1"
4848
syrupy = "4.9.1"
@@ -98,7 +98,7 @@ ignore = [
9898
[tool.pylint.BASIC]
9999
good-names = [
100100
"_",
101-
"_P",
101+
"P",
102102
"ex",
103103
"fp",
104104
"i",

src/spotifyaio/spotify.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@
8686
VERSION = metadata.version(__package__)
8787

8888

89-
def catch_json_decode_error[**_P, _R](
90-
func: Callable[Concatenate[SpotifyClient, _P], Awaitable[_R]],
91-
) -> Callable[Concatenate[SpotifyClient, _P], Awaitable[_R]]:
89+
def catch_json_decode_error[**P, R](
90+
func: Callable[Concatenate[SpotifyClient, P], Awaitable[R]],
91+
) -> Callable[Concatenate[SpotifyClient, P], Awaitable[R]]:
9292
"""Catch JSON decode errors."""
9393

94-
async def wrapper(self: SpotifyClient, *args: _P.args, **kwargs: _P.kwargs) -> _R:
94+
async def wrapper(self: SpotifyClient, *args: P.args, **kwargs: P.kwargs) -> R:
9595
try:
9696
return await func(self, *args, **kwargs)
9797
except orjson.JSONDecodeError as e: # pylint: disable=no-member

0 commit comments

Comments
 (0)