From b9f9287c10790cd693eff07796274ec86d24feca Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Mon, 22 Jun 2026 12:29:15 +0200 Subject: [PATCH] Address typing issues --- scrapy/exporters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/exporters.py b/scrapy/exporters.py index 237be23b9..d90c71665 100644 --- a/scrapy/exporters.py +++ b/scrapy/exporters.py @@ -74,7 +74,7 @@ class BaseItemExporter(ABC): def _serialize_nested_items( self, value: Any, default_value: Any, include_empty: bool | None ) -> Any: - def serialize_iterable(it): + def serialize_iterable(it: Iterable[Any]) -> list[Any]: return [ self._serialize_nested_items(x, default_value, include_empty) for x in it