Skip to content

Commit db7c50f

Browse files
dependabot[bot]mkb79
andauthoredJan 31, 2024··
build(deps-dev): Bump black from 23.12.1 to 24.1.1 (#324)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mkb79 <[email protected]>
1 parent f1794a5 commit db7c50f

File tree

7 files changed

+42
-54
lines changed

7 files changed

+42
-54
lines changed
 

‎examples/listening_stats.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def get_reading_time_since_signup(client):
7575
)
7676
# iterate over each month
7777
for stat in stats["aggregated_monthly_listening_stats"]:
78-
year_aggregate[
79-
stat.get("interval_identifier")
80-
] = convert_miliseconds_to_hours_minutes_seconds(stat["aggregated_sum"])
78+
year_aggregate[stat.get("interval_identifier")] = (
79+
convert_miliseconds_to_hours_minutes_seconds(stat["aggregated_sum"])
80+
)
8181
return year_aggregate
8282

8383

‎noxfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nox sessions."""
2+
23
import os
34
import shlex
45
import shutil

‎poetry.lock

+23-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/audible/activation_bytes.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ def get_activation_bytes(
161161
auth: "audible.Authenticator",
162162
filename: str | pathlib.Path | None = ...,
163163
extract: Literal[True] = ...,
164-
) -> str:
165-
...
164+
) -> str: ...
166165

167166

168167
@overload
@@ -171,8 +170,7 @@ def get_activation_bytes(
171170
filename: str | pathlib.Path | None = ...,
172171
*,
173172
extract: Literal[False],
174-
) -> bytes:
175-
...
173+
) -> bytes: ...
176174

177175

178176
def get_activation_bytes(

‎src/audible/auth.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,7 @@ def get_activation_bytes(
716716
filename: Union["pathlib.Path", str] | None = ...,
717717
extract: Literal[True] = ...,
718718
force_refresh: bool = ...,
719-
) -> str:
720-
...
719+
) -> str: ...
721720

722721
@overload
723722
def get_activation_bytes(
@@ -726,8 +725,7 @@ def get_activation_bytes(
726725
*,
727726
extract: Literal[False],
728727
force_refresh: bool = ...,
729-
) -> bytes:
730-
...
728+
) -> bytes: ...
731729

732730
def get_activation_bytes(
733731
self,

‎src/audible/client.py

+10-20
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def __init__(
112112
self._response_callback = response_callback
113113

114114
@abstractmethod
115-
def _get_session(self, *args: Any, **kwargs: Any) -> ClientT:
116-
...
115+
def _get_session(self, *args: Any, **kwargs: Any) -> ClientT: ...
117116

118117
@abstractmethod
119118
def _request(
@@ -122,8 +121,7 @@ def _request(
122121
path: str,
123122
response_callback: Callable[[httpx.Response], Any] | None = None,
124123
**kwargs: Any,
125-
) -> Any:
126-
...
124+
) -> Any: ...
127125

128126
def switch_marketplace(self, country_code: str) -> None:
129127
locale = Locale(country_code.lower())
@@ -199,8 +197,7 @@ def raw_request(
199197
apply_auth_flow: bool = ...,
200198
apply_cookies: bool = ...,
201199
**kwargs: Any,
202-
) -> httpx.Response:
203-
...
200+
) -> httpx.Response: ...
204201

205202
@overload
206203
def raw_request(
@@ -212,8 +209,7 @@ def raw_request(
212209
apply_auth_flow: bool = ...,
213210
apply_cookies: bool = ...,
214211
**kwargs: Any,
215-
) -> AbstractContextManager[httpx.Response]:
216-
...
212+
) -> AbstractContextManager[httpx.Response]: ...
217213

218214
@overload
219215
def raw_request(
@@ -225,8 +221,7 @@ def raw_request(
225221
apply_auth_flow: bool = ...,
226222
apply_cookies: bool = ...,
227223
**kwargs: Any,
228-
) -> Coroutine[Any, Any, httpx.Response]:
229-
...
224+
) -> Coroutine[Any, Any, httpx.Response]: ...
230225

231226
@overload
232227
def raw_request(
@@ -238,8 +233,7 @@ def raw_request(
238233
apply_auth_flow: bool = ...,
239234
apply_cookies: bool = ...,
240235
**kwargs: Any,
241-
) -> AbstractAsyncContextManager[httpx.Response]:
242-
...
236+
) -> AbstractAsyncContextManager[httpx.Response]: ...
243237

244238
def raw_request(
245239
self,
@@ -308,8 +302,7 @@ def get(
308302
path: str,
309303
response_callback: Callable[[httpx.Response], Any] | None = None,
310304
**kwargs: dict[str, Any],
311-
) -> Any:
312-
...
305+
) -> Any: ...
313306

314307
@abstractmethod
315308
def post(
@@ -318,17 +311,15 @@ def post(
318311
body: Any,
319312
response_callback: Callable[[httpx.Response], Any] | None = None,
320313
**kwargs: dict[str, Any],
321-
) -> Any:
322-
...
314+
) -> Any: ...
323315

324316
@abstractmethod
325317
def delete(
326318
self,
327319
path: str,
328320
response_callback: Callable[[httpx.Response], Any] | None = None,
329321
**kwargs: dict[str, Any],
330-
) -> Any:
331-
...
322+
) -> Any: ...
332323

333324
@abstractmethod
334325
def put(
@@ -337,8 +328,7 @@ def put(
337328
body: Any,
338329
response_callback: Callable[[httpx.Response], Any] | None = None,
339330
**kwargs: dict[str, Any],
340-
) -> Any:
341-
...
331+
) -> Any: ...
342332

343333

344334
class Client(BaseClient[httpx.Client]):

‎tests/test_main.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test cases for the __main__ module."""
2+
23
from audible import client
34

45

0 commit comments

Comments
 (0)
Please sign in to comment.