Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
"pydantic>=2.12; python_version >= '3.14'",
"aiohttp>=3.10.5; python_version == '3.13'",
"aiohttp>=3.13; python_version >= '3.14'",
"modern-di>=3,<4",
"modern-di>=4,<5",
]
version = "0"

Expand Down
7 changes: 2 additions & 5 deletions tests/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ class DependentCreator:
dep1: SimpleCreator


def fetch_event_type(event: TelegramObject | None = None) -> str:
# Optional-with-default so an explicit container.validate() treats the event
# as optional (the providers are only registered by setup_di); the real
# event still injects at runtime.
return type(event).__name__ if event else ""
def fetch_event_type(event: TelegramObject) -> str:
return type(event).__name__


class Dependencies(Group):
Expand Down
Loading