From a7e3fca3228b933bcc1b09bb29e532d03c666fd4 Mon Sep 17 00:00:00 2001 From: Abraham Murciano Date: Mon, 19 Jan 2026 16:54:09 +0200 Subject: [PATCH] [punq] Add missing return type for `Container.register()` (#15301) --- stubs/punq/punq/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/punq/punq/__init__.pyi b/stubs/punq/punq/__init__.pyi index 196d64445..544eff046 100644 --- a/stubs/punq/punq/__init__.pyi +++ b/stubs/punq/punq/__init__.pyi @@ -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: ...