Skip to content

Commit 8e6e3cb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip]
1 parent 51b20d8 commit 8e6e3cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/live_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]:
6161

6262
@app.get("/cache_json_encoder")
6363
@cache(tag="test_tag_1")
64-
def cache_json_encoder() -> (
65-
dict[str, Union[bool, str, datetime, date, Decimal]]
66-
):
64+
def cache_json_encoder() -> dict[
65+
str, Union[bool, str, datetime, date, Decimal]
66+
]:
6767
"""Route that returns a dictionary with different data types.
6868
6969
This has the default cache time of 1 year.

tests/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]:
3333

3434
@app.get("/cache_json_encoder")
3535
@cache()
36-
def cache_json_encoder() -> (
37-
dict[str, Union[bool, str, datetime, date, Decimal]]
38-
):
36+
def cache_json_encoder() -> dict[
37+
str, Union[bool, str, datetime, date, Decimal]
38+
]:
3939
"""Route that returns a dictionary with different data types."""
4040
return {
4141
"success": True,

0 commit comments

Comments
 (0)