mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[punq] Add missing return type for Container.register() (#15301)
This commit is contained in:
@@ -86,7 +86,7 @@ class Container:
|
||||
instance: _T | _Empty = ...,
|
||||
scope: Scope = Scope.transient,
|
||||
**kwargs: Any,
|
||||
): ...
|
||||
) -> Container: ...
|
||||
def resolve_all(self, service: type[_T] | str, **kwargs: Any) -> list[_T]: ...
|
||||
def resolve(self, service_key: type[_T] | str, **kwargs: Any) -> _T: ...
|
||||
def instantiate(self, service_key: type[_T] | str, **kwargs: Any) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user