@ -311,6 +311,8 @@ class APIWebSocketRoute(routing.WebSocketRoute):
class APIRoute(routing.Route):
_route_full_path_format: str # only for mypy
def __init__(
self,
path: str,
@ -2,7 +2,6 @@ import pytest
from fastapi import APIRouter, FastAPI
from fastapi.routing import APIRoute
from fastapi.testclient import TestClient
from starlette.routing import Route
app = FastAPI()