HomeSoftware Heritage

core.loader: Fix Iterable/List typing issues

Description

core.loader: Fix Iterable/List typing issues

  1. origin_visit_add returns an iterable, not a sequence
  2. starting with v0.11.6, _add() endpoints now require a List instead of an Iteralble.

All these will trigger type warning with swh.core > 0.2.0,
as it will no longer hide the signature of storage endpoints
from mypy

Details

Provenance
vlorentzAuthored on Jul 30 2020, 7:00 PM
vlorentzPushed on Jul 30 2020, 7:15 PM
Differential Revision
D3656: core.loader: Fix Iterable/List typing issues.
Parents
rDLDBASE8808b7563a78: package.loader: Fix type warning with swh.core > 0.2.0
Branches
Unknown
Tags
Unknown
References
tag: v0.7.3
Build Status
Buildable 14110
Build 21670: test-and-buildJenkins console · Jenkins