Skip to content

Commit

Permalink
Fix testing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jan 13, 2025
1 parent 74b8e54 commit dcd0227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/dependencies/requires/test_nested.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, Dict
from typing import Any, Dict, Union

from esmerald import Gateway, Requires, get
from esmerald.testclient import create_client


async def query_params(q: str | None = None, skip: int = 0, limit: int = 20):
async def query_params(q: Union[str, None] = None, skip: int = 0, limit: int = 20):
return {"q": q, "skip": skip, "limit": limit}


Expand Down
4 changes: 2 additions & 2 deletions tests/dependencies/requires/test_simple.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, Dict
from typing import Any, Dict, Union

from esmerald import Gateway, Requires, get
from esmerald.testclient import create_client


async def query_params(q: str | None = None, skip: int = 0, limit: int = 20):
async def query_params(q: Union[str | None] = None, skip: int = 0, limit: int = 20):
return {"q": q, "skip": skip, "limit": limit}


Expand Down

0 comments on commit dcd0227

Please sign in to comment.