Skip to content

Commit

Permalink
Update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Aug 26, 2024
1 parent dcd2f7b commit d5a1d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zyte_common_items/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def probability_request_list_processor(
return [request.cast(ProbabilityRequest) for request in request_list]


def metadata_processor(metadata: BaseMetadata, page):
def metadata_processor(metadata: Optional[BaseMetadata], page):
"""Processor for a metadata field that ensures that the output metadata
object uses the metadata class declared by *page*."""
if metadata is None or page.metadata_cls is None:
Expand Down

0 comments on commit d5a1d58

Please sign in to comment.