From 9be4e58322b9cf755c47a730c833f1b0c4443267 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 11 Oct 2023 22:09:53 +0400 Subject: [PATCH] Don't use a variadic generic syntax. --- scrapy_poet/injection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy_poet/injection.py b/scrapy_poet/injection.py index 80c94c81..693d7170 100644 --- a/scrapy_poet/injection.py +++ b/scrapy_poet/injection.py @@ -272,7 +272,7 @@ def build_instances_from_providers( ): from typing import Annotated - cls = Annotated[cls, *metadata] + cls = Annotated[(cls, *metadata)] objs_by_type[cls] = obj extra_classes = objs_by_type.keys() - provided_classes if extra_classes: