Skip to content

Commit

Permalink
Change name of type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Jul 12, 2023
1 parent feb0fa9 commit 12b9554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sanic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
from sanic.server.websockets.impl import WebsocketImplProtocol as Websocket


SimpleSanic: TypeAlias = "Sanic[Config, SimpleNamespace]"
DefaultSanic: TypeAlias = "Sanic[Config, SimpleNamespace]"
"""
A type alias for a Sanic app with a default config and namespace.
"""

SimpleRequest: TypeAlias = Request[SimpleSanic, SimpleNamespace]
DefaultRequest: TypeAlias = Request[DefaultSanic, SimpleNamespace]
"""
A type alias for a request with a default Sanic app and namespace.
"""
Expand All @@ -58,8 +58,8 @@
"Request",
"Websocket",
# Common types
"SimpleSanic",
"SimpleRequest",
"DefaultSanic",
"DefaultRequest",
# Common exceptions
"BadRequest",
"ExpectationFailed",
Expand Down

0 comments on commit 12b9554

Please sign in to comment.