Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnybx committed Sep 6, 2023
1 parent bf7e5c2 commit b1f8c0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

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

4 changes: 3 additions & 1 deletion tests/test_mongoengine/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ async def get_users(user_filter: UserFilter = FilterDepends(UserFilter)): # typ
]

@app.get("/users-by-alias", response_model=List[UserOut]) # type: ignore[valid-type]
async def get_users(user_filter: UserFilter = FilterDepends(UserFilterByAlias, by_alias=True)): # type: ignore[valid-type]
async def get_users_by_alias(
user_filter: UserFilter = FilterDepends(UserFilterByAlias, by_alias=True) # type: ignore[valid-type]
):
query = user_filter.filter(User.objects()) # type: ignore[attr-defined]
query = query.select_related()
return [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sqlalchemy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ async def get_users(
return result.scalars().unique().all()

@app.get("/users-by-alias", response_model=List[UserOut]) # type: ignore[valid-type]
async def get_users(
async def get_users_by_alias(
user_filter: UserFilter = FilterDepends(UserFilterByAlias, by_alias=True), # type: ignore[valid-type]
db: AsyncSession = Depends(get_db),
):
Expand Down

0 comments on commit b1f8c0d

Please sign in to comment.