Skip to content

Commit

Permalink
Refactor run function in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abersheeran committed Feb 10, 2024
1 parent 554aa38 commit 43ef184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uvicorn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ def run(
app_dir: str | None = None,
factory: bool = False,
h11_max_incomplete_event_size: int | None = None,
before_graceful_exit_hook: Callable[[], Any]
| Callable[[], Awaitable[Any]]
| str
before_graceful_exit_hook: Callable[[], Any]
| Callable[[], Awaitable[Any]]
| str
| None = None,
) -> None:
if app_dir is not None:
Expand Down

0 comments on commit 43ef184

Please sign in to comment.