Skip to content

Commit

Permalink
Fixed mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Dec 6, 2022
1 parent ee99c23 commit 8f4cdc8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/asphalt/web/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AIOHTTPComponent(ContainerComponent):

def __init__(
self,
components: dict[str, dict[str, Any] | None] = None,
components: dict[str, dict[str, Any] | None] | None = None,
*,
app: Application | str | None = None,
host: str = "127.0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/web/asgi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ASGIComponent(ContainerComponent, Generic[T_Application]):

def __init__(
self,
components: dict[str, dict[str, Any] | None] = None,
components: dict[str, dict[str, Any] | None] | None = None,
*,
app: T_Application | str,
host: str = "127.0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/web/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FastAPIComponent(ASGIComponent[FastAPI]):

def __init__(
self,
components: dict[str, dict[str, Any] | None] = None,
components: dict[str, dict[str, Any] | None] | None = None,
*,
app: FastAPI | str | None = None,
host: str = "127.0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/web/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class StarletteComponent(ASGIComponent[Starlette]):

def __init__(
self,
components: dict[str, dict[str, Any] | None] = None,
components: dict[str, dict[str, Any] | None] | None = None,
*,
app: Starlette | None = None,
host: str = "127.0.0.1",
Expand Down

0 comments on commit 8f4cdc8

Please sign in to comment.