Browse Source

🎨 Auto format

pull/15212/head
pre-commit-ci-lite[bot] 4 months ago
committed by GitHub
parent
commit
006e62e127
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/openapi/utils.py
  2. 2
      tests/test_dependency_contextmanager.py
  3. 3
      tests/test_route_scope.py

2
fastapi/openapi/utils.py

@ -3,7 +3,7 @@ import http.client
import inspect
import warnings
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._compat import (

2
tests/test_dependency_contextmanager.py

@ -1,9 +1,9 @@
import json
from typing import TYPE_CHECKING
import pytest
from fastapi import BackgroundTasks, Depends, FastAPI
from fastapi.testclient import TestClient
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from fastapi.responses import StreamingResponse

3
tests/test_route_scope.py

@ -1,7 +1,8 @@
from typing import TYPE_CHECKING
import pytest
from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect
from fastapi.testclient import TestClient
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from fastapi.routing import APIRoute, APIWebSocketRoute

Loading…
Cancel
Save