Skip to content

Commit 984e59f

Browse files
committed
Merge branch 'master' of github.com:Lancetnik/fastapi
2 parents 52ebb5d + 860c851 commit 984e59f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

fastapi/routing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
from contextlib import AsyncExitStack, asynccontextmanager
77
from enum import Enum, IntEnum
88
from typing import (
9-
AsyncIterator,
109
Any,
10+
AsyncIterator,
1111
Callable,
1212
Coroutine,
1313
Dict,
1414
List,
15+
Mapping,
1516
Optional,
1617
Sequence,
1718
Set,
1819
Tuple,
1920
Type,
2021
Union,
21-
Mapping,
2222
)
2323

2424
from fastapi import params
@@ -59,7 +59,7 @@
5959
websocket_session,
6060
)
6161
from starlette.status import WS_1008_POLICY_VIOLATION
62-
from starlette.types import ASGIApp, Lifespan, Scope, AppType
62+
from starlette.types import AppType, ASGIApp, Lifespan, Scope
6363
from starlette.websockets import WebSocket
6464

6565

tests/test_router_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def router_lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
120120
state.router_startup = True
121121
yield {"router": True}
122122
state.router_shutdown = True
123-
123+
124124
@asynccontextmanager
125125
async def subrouter_lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
126126
state.sub_router_startup = True

0 commit comments

Comments
 (0)