mirror of https://github.com/scrapy/scrapy.git
Address typing issues
This commit is contained in:
parent
58c94d2171
commit
b9f9287c10
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue