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: