pre-commit-ci-lite[bot]
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
4 additions and
3 deletions
-
fastapi/openapi/utils.py
-
tests/test_dependency_contextmanager.py
-
tests/test_route_scope.py
|
|
@ -3,7 +3,7 @@ import http.client |
|
|
import inspect |
|
|
import inspect |
|
|
import warnings |
|
|
import warnings |
|
|
from collections.abc import Sequence |
|
|
from collections.abc import Sequence |
|
|
from typing import Any, Literal, cast, TYPE_CHECKING |
|
|
from typing import TYPE_CHECKING, Any, Literal, cast |
|
|
|
|
|
|
|
|
from fastapi import routing |
|
|
from fastapi import routing |
|
|
from fastapi._compat import ( |
|
|
from fastapi._compat import ( |
|
|
|
|
|
@ -1,9 +1,9 @@ |
|
|
import json |
|
|
import json |
|
|
|
|
|
from typing import TYPE_CHECKING |
|
|
|
|
|
|
|
|
import pytest |
|
|
import pytest |
|
|
from fastapi import BackgroundTasks, Depends, FastAPI |
|
|
from fastapi import BackgroundTasks, Depends, FastAPI |
|
|
from fastapi.testclient import TestClient |
|
|
from fastapi.testclient import TestClient |
|
|
from typing import TYPE_CHECKING |
|
|
|
|
|
|
|
|
|
|
|
if TYPE_CHECKING: |
|
|
if TYPE_CHECKING: |
|
|
from fastapi.responses import StreamingResponse |
|
|
from fastapi.responses import StreamingResponse |
|
|
|
|
|
@ -1,7 +1,8 @@ |
|
|
|
|
|
from typing import TYPE_CHECKING |
|
|
|
|
|
|
|
|
import pytest |
|
|
import pytest |
|
|
from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect |
|
|
from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect |
|
|
from fastapi.testclient import TestClient |
|
|
from fastapi.testclient import TestClient |
|
|
from typing import TYPE_CHECKING |
|
|
|
|
|
|
|
|
|
|
|
if TYPE_CHECKING: |
|
|
if TYPE_CHECKING: |
|
|
from fastapi.routing import APIRoute, APIWebSocketRoute |
|
|
from fastapi.routing import APIRoute, APIWebSocketRoute |
|
|
|