From 9025a5d3e42cabc8bf111377c2994e37dc22f566 Mon Sep 17 00:00:00 2001 From: Abraham Murciano Date: Sun, 18 Jan 2026 17:09:26 +0200 Subject: [PATCH] add missing return type for punq.Container.register --- 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 196d64445f06..544eff046ff4 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: ...