🎨 Add types and format for linting

This commit is contained in:
Sebastián Ramírez 2022-04-13 17:31:23 +02:00
parent edcae918e2
commit 1c46aa2d52
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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()