Skip to content

Commit

Permalink
Merge pull request #35 from Aksem/feature/web_aiohttp
Browse files Browse the repository at this point in the history
Make transports param of Modapp sequence instead of set
  • Loading branch information
Aksem authored Nov 8, 2024
2 parents 6420bad + 13f1ff5 commit 978e94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modapp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import asyncio
import platform
from typing import TYPE_CHECKING, Any, Coroutine
from typing import TYPE_CHECKING, Any, Coroutine, Sequence

from loguru import logger

Expand Down Expand Up @@ -41,7 +41,7 @@ def run_in_better_loop(coroutine: Callable[..., Coroutine[Any, Any, Any]]) -> No
class Modapp:
def __init__(
self,
transports: set[BaseTransport],
transports: Sequence[BaseTransport],
config: dict[str, BaseTransportConfig] | None = None,
dependency_overrides: DependencyOverrides | None = None,
keep_running_endpoint: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "modapp"
version = "0.4.0"
version = "0.4.1"
description = ""
authors = ["Vladyslav Hnatiuk <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 978e94b

Please sign in to comment.