HomeSoftware Heritage

all indexers: make index() return a list of results instead of a single one.

Description

all indexers: make index() return a list of results instead of a single one.

  1. it was wrongfully annotated as '-> TResult' even though some indexers can return None
  2. in a future commit, the fossology indexer will need to return multiple results.

Details

Provenance
vlorentzAuthored on Oct 7 2020, 11:43 AM
vlorentzPushed on Oct 8 2020, 1:01 PM
Parents
rDCIDX7fe4a89dbcf2: base indexers: add type annotation for self.{storage,idx_storage}.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 16042
Build 24678: test-and-buildJenkins console · Jenkins