Skip to content

Commit

Permalink
Deprecate ServerState in the main module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Feb 12, 2025
1 parent d68f89e commit 9d7a483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import httpx
import pytest

import uvicorn.server
from tests.utils import run_server
from uvicorn import Server
from uvicorn._types import ASGIReceiveCallable, ASGISendCallable, Scope
Expand Down Expand Up @@ -122,4 +123,4 @@ def test_deprecated_server_state_from_main() -> None:
):
main = importlib.import_module("uvicorn.main")
server_state_cls = getattr(main, "ServerState")
assert server_state_cls is not None
assert server_state_cls is uvicorn.server.ServerState

0 comments on commit 9d7a483

Please sign in to comment.