There was an error while loading. Please reload this page.
1 parent c145d62 commit 7570e70Copy full SHA for 7570e70
src/dependency_injector/wiring.py
@@ -80,6 +80,7 @@ def _resolve_config_option(
80
original: providers.ConfigurationOption,
81
as_: Any = None,
82
) -> providers.Provider:
83
+ # TODO: Take care about invariant injections
84
original_root = original.root
85
new_root: providers.Configuration = cast(providers.Configuration, self._resolve_provider(original_root))
86
new_option = new_root.get_option_provider(original.get_relative_name())
@@ -120,6 +121,7 @@ def wire(
120
121
packages: Optional[Iterable[ModuleType]] = None,
122
) -> None:
123
"""Wire container providers with provided packages and modules."""
124
+ # TODO: Add protection to only wire declarative container instances
125
if not modules:
126
modules = []
127
0 commit comments