Skip to content

Commit cc17052

Browse files
committed
Fix mypy issues
1 parent 7238482 commit cc17052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dependency_injector/providers.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class FactoryDelegate(Delegate):
304304

305305
class FactoryAggregate(Provider[T]):
306306
def __init__(self, provider_dict: Optional[_Dict[Any, Provider[T]]] = None, **provider_kwargs: Provider[T]): ...
307-
def __getattr__(self, provider_name: Any) -> Provider[T]: ...
307+
def __getattr__(self, provider_name: Any) -> Factory[T]: ...
308308

309309
@overload
310310
def __call__(self, provider_name: Optional[Any] = None, *args: Injection, **kwargs: Injection) -> T: ...
@@ -317,8 +317,8 @@ class FactoryAggregate(Provider[T]):
317317
def set_providers(self, provider_dict: Optional[_Dict[Any, Provider[T]]] = None, **provider_kwargs: Provider[T]) -> FactoryAggregate[T]: ...
318318

319319
@property
320-
def factories(self) -> _Dict[Any, Provider[T]]: ...
321-
def set_factories(self, provider_dict: Optional[_Dict[Any, Provider[T]]] = None, **provider_kwargs: Provider[T]) -> FactoryAggregate[T]: ...
320+
def factories(self) -> _Dict[Any, Factory[T]]: ...
321+
def set_factories(self, provider_dict: Optional[_Dict[Any, Factory[T]]] = None, **provider_kwargs: Factory[T]) -> FactoryAggregate[T]: ...
322322

323323

324324
class BaseSingleton(Provider[T]):

0 commit comments

Comments
 (0)