Skip to content

Commit

Permalink
build(deps-dev): Bump black from 23.12.1 to 24.1.1 (#324)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mkb79 <mkb79@hackitall.de>
  • Loading branch information
dependabot[bot] and mkb79 authored Jan 31, 2024
1 parent f1794a5 commit db7c50f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 54 deletions.
6 changes: 3 additions & 3 deletions examples/listening_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def get_reading_time_since_signup(client):
)
# iterate over each month
for stat in stats["aggregated_monthly_listening_stats"]:
year_aggregate[
stat.get("interval_identifier")
] = convert_miliseconds_to_hours_minutes_seconds(stat["aggregated_sum"])
year_aggregate[stat.get("interval_identifier")] = (
convert_miliseconds_to_hours_minutes_seconds(stat["aggregated_sum"])
)
return year_aggregate


Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand Down
46 changes: 23 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/audible/activation_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ def get_activation_bytes(
auth: "audible.Authenticator",
filename: str | pathlib.Path | None = ...,
extract: Literal[True] = ...,
) -> str:
...
) -> str: ...


@overload
Expand All @@ -171,8 +170,7 @@ def get_activation_bytes(
filename: str | pathlib.Path | None = ...,
*,
extract: Literal[False],
) -> bytes:
...
) -> bytes: ...


def get_activation_bytes(
Expand Down
6 changes: 2 additions & 4 deletions src/audible/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,7 @@ def get_activation_bytes(
filename: Union["pathlib.Path", str] | None = ...,
extract: Literal[True] = ...,
force_refresh: bool = ...,
) -> str:
...
) -> str: ...

@overload
def get_activation_bytes(
Expand All @@ -726,8 +725,7 @@ def get_activation_bytes(
*,
extract: Literal[False],
force_refresh: bool = ...,
) -> bytes:
...
) -> bytes: ...

def get_activation_bytes(
self,
Expand Down
30 changes: 10 additions & 20 deletions src/audible/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def __init__(
self._response_callback = response_callback

@abstractmethod
def _get_session(self, *args: Any, **kwargs: Any) -> ClientT:
...
def _get_session(self, *args: Any, **kwargs: Any) -> ClientT: ...

@abstractmethod
def _request(
Expand All @@ -122,8 +121,7 @@ def _request(
path: str,
response_callback: Callable[[httpx.Response], Any] | None = None,
**kwargs: Any,
) -> Any:
...
) -> Any: ...

def switch_marketplace(self, country_code: str) -> None:
locale = Locale(country_code.lower())
Expand Down Expand Up @@ -199,8 +197,7 @@ def raw_request(
apply_auth_flow: bool = ...,
apply_cookies: bool = ...,
**kwargs: Any,
) -> httpx.Response:
...
) -> httpx.Response: ...

@overload
def raw_request(
Expand All @@ -212,8 +209,7 @@ def raw_request(
apply_auth_flow: bool = ...,
apply_cookies: bool = ...,
**kwargs: Any,
) -> AbstractContextManager[httpx.Response]:
...
) -> AbstractContextManager[httpx.Response]: ...

@overload
def raw_request(
Expand All @@ -225,8 +221,7 @@ def raw_request(
apply_auth_flow: bool = ...,
apply_cookies: bool = ...,
**kwargs: Any,
) -> Coroutine[Any, Any, httpx.Response]:
...
) -> Coroutine[Any, Any, httpx.Response]: ...

@overload
def raw_request(
Expand All @@ -238,8 +233,7 @@ def raw_request(
apply_auth_flow: bool = ...,
apply_cookies: bool = ...,
**kwargs: Any,
) -> AbstractAsyncContextManager[httpx.Response]:
...
) -> AbstractAsyncContextManager[httpx.Response]: ...

def raw_request(
self,
Expand Down Expand Up @@ -308,8 +302,7 @@ def get(
path: str,
response_callback: Callable[[httpx.Response], Any] | None = None,
**kwargs: dict[str, Any],
) -> Any:
...
) -> Any: ...

@abstractmethod
def post(
Expand All @@ -318,17 +311,15 @@ def post(
body: Any,
response_callback: Callable[[httpx.Response], Any] | None = None,
**kwargs: dict[str, Any],
) -> Any:
...
) -> Any: ...

@abstractmethod
def delete(
self,
path: str,
response_callback: Callable[[httpx.Response], Any] | None = None,
**kwargs: dict[str, Any],
) -> Any:
...
) -> Any: ...

@abstractmethod
def put(
Expand All @@ -337,8 +328,7 @@ def put(
body: Any,
response_callback: Callable[[httpx.Response], Any] | None = None,
**kwargs: dict[str, Any],
) -> Any:
...
) -> Any: ...


class Client(BaseClient[httpx.Client]):
Expand Down
1 change: 1 addition & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the __main__ module."""

from audible import client


Expand Down

0 comments on commit db7c50f

Please sign in to comment.