Skip to content

Commit 967e401

Browse files
author
Joakim Nordling
committed
Make mypy and flake8 happy
1 parent 57e031c commit 967e401

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

openapi_to_fastapi/tests/test_router.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Any, Dict
22

3-
import httpx
43
import pydantic
54
import pytest
65
from fastapi import Depends, Header, HTTPException, Request
@@ -514,10 +513,10 @@ def lax_validation_route(request):
514513
def strict_validation_route(request):
515514
return {"ok": True}
516515

517-
def make_lax_request(json: Dict[str, Any]) -> httpx.Response:
516+
def make_lax_request(json: Dict[str, Any]) -> Any:
518517
return client.post("/TestValidation_v0.1", json=json)
519518

520-
def make_strict_request(json: Dict[str, Any]) -> httpx.Response:
519+
def make_strict_request(json: Dict[str, Any]) -> Any:
521520
return client.post("/TestValidation_v0.2", json=json)
522521

523522
valid_data = {

0 commit comments

Comments
 (0)