Browse Source

🎨 Add types and format for linting

refactor-include-router-1
Sebastián Ramírez 3 years ago
parent
commit
1c46aa2d52
  1. 2
      fastapi/routing.py
  2. 1
      tests/test_custom_route_class.py

2
fastapi/routing.py

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

1
tests/test_custom_route_class.py

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

Loading…
Cancel
Save