diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 1e0e6c67..20824aef 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -7,6 +7,11 @@ that were made in every particular version. From version 0.7.6 *Dependency Injector* framework strictly follows `Semantic versioning`_ +4.13.2 +------ +- Fix PyCharm typing warning "Expected type 'Optional[Iterable[ModuleType]]', + got 'List[module.py]' instead" in ``container.wire()`` method. + 4.13.1 ------ - Fix declarative container metaclass bug: parent container providers replaced child container providers. diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index ae3660f8..99184fa8 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Top-level package.""" -__version__ = '4.13.1' +__version__ = '4.13.2' """Version number. :type: str diff --git a/src/dependency_injector/containers.pyi b/src/dependency_injector/containers.pyi index 7c273e46..cc6d378d 100644 --- a/src/dependency_injector/containers.pyi +++ b/src/dependency_injector/containers.pyi @@ -1,4 +1,3 @@ -from types import ModuleType from typing import ( Type, Dict, @@ -37,7 +36,7 @@ class Container: def reset_last_overriding(self) -> None: ... def reset_override(self) -> None: ... def resolve_provider_name(self, provider_to_resolve: Provider) -> Optional[str]: ... - def wire(self, modules: Optional[Iterable[ModuleType]] = None, packages: Optional[Iterable[ModuleType]] = None) -> None: ... + def wire(self, modules: Optional[Iterable[Any]] = None, packages: Optional[Iterable[Any]] = None) -> None: ... def unwire(self) -> None: ... def init_resources(self) -> Optional[Awaitable]: ... def shutdown_resources(self) -> Optional[Awaitable]: ...