HomeSoftware Heritage

Fix upcoming type warning with swh.core > v0.1.2.

Description

Fix upcoming type warning with swh.core > v0.1.2.

origin_visit_status_get_latest expects an int, not Optional[int];
but this error wasn't detected so far because mypy couldn't detect
the type of the function.

The next release of swh.core fixes that issue, so this fix is now
needed to not trigger a mypy error.

Details

Provenance
vlorentzAuthored on Jul 29 2020, 10:30 AM
vlorentzPushed on Jul 29 2020, 4:24 PM
Parents
rDSTOb6202a0cf154: Make API endpoints take Lists instead of Iterables as arguments
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14055
Build 21577: test-and-buildJenkins console · Jenkins