From dd437d95564ebf8235a99a443dd8f7d256886808 Mon Sep 17 00:00:00 2001 From: remimd Date: Wed, 6 Mar 2024 13:14:58 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Update=20`should=5Fbe=5Finj?= =?UTF-8?q?ectable`=20signature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- injection/_pkg.pyi | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/injection/_pkg.pyi b/injection/_pkg.pyi index 6820eea..f5fbb4b 100644 --- a/injection/_pkg.pyi +++ b/injection/_pkg.pyi @@ -85,14 +85,7 @@ class Module: always be the same. """ - def should_be_injectable( - self, - wrapped: Callable[..., Any] = ..., - /, - *, - on: type | Iterable[type] | UnionType = ..., - override: bool = ..., - ): + def should_be_injectable(self, wrapped: type = ..., /, *, override: bool = ...): """ Decorator applicable to a class. It is used to specify whether an injectable should be registered. Raise an exception at injection time if the class isn't