Skip to content

Commit

Permalink
fix(api): Fixed api.tests mypy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
albertisfu committed Jun 14, 2024
1 parent 6a36bbd commit ba6ee9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ async def test_next_page_date_filed_sorting(self) -> None:
date_filed=date(2015, 8, i + 1),
)

params = {"order_by": "date_filed"}
params: dict[str, str | int] = {"order_by": "date_filed"}
# Request then first page and compare the results. In this sorting key
# results where date_filed is not None are shown first.
with mock.patch.object(
Expand Down Expand Up @@ -1388,7 +1388,7 @@ async def test_ignore_cursor_or_page_params(self) -> None:
date_filed=date(2015, 8, i + 1),
)

params = {"order_by": "date_created"}
params: dict[str, str | int] = {"order_by": "date_created"}
# Start requesting the first page of date_created which uses cursor
# pagination.
with mock.patch.object(
Expand Down

0 comments on commit ba6ee9e

Please sign in to comment.