Skip to content

Commit

Permalink
馃帹 Add types and format for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Apr 13, 2022
1 parent edcae91 commit 1c46aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fastapi/routing.py
Expand Up @@ -311,6 +311,8 @@ def matches(self, scope: Scope) -> Tuple[Match, Scope]:


class APIRoute(routing.Route):
_route_full_path_format: str # only for mypy

def __init__(
self,
path: str,
Expand Down
1 change: 0 additions & 1 deletion tests/test_custom_route_class.py
Expand Up @@ -2,7 +2,6 @@
from fastapi import APIRouter, FastAPI
from fastapi.routing import APIRoute
from fastapi.testclient import TestClient
from starlette.routing import Route

app = FastAPI()

Expand Down

0 comments on commit 1c46aa2

Please sign in to comment.