lister: Fix type

This fixes the master build [1]

[1] https://jenkins.softwareheritage.org/view/swh-draft/job/DLS/job/tests/1625/console
This commit is contained in:
Antoine R. Dumont (@ardumont) 2021-11-23 10:13:19 +01:00
parent 97553d8984
commit 3ffea8f525
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -248,11 +248,13 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]):
) -> Iterator[ListedOrigin]:
assert self.lister_obj.id is not None
for hit in page:
last_modified: str = str(hit.last_modified)
last_update: datetime.datetime = iso8601.parse_date(last_modified)
yield ListedOrigin(
lister_id=self.lister_obj.id,
visit_type=hit.vcs.value,
url=hit.url,
last_update=iso8601.parse_date(hit.last_modified),
last_update=last_update,
)
def _get_pages_from_subsitemap(