HomeSoftware Heritage

Add type annotations on get_storage.

Description

Add type annotations on get_storage.

The main goal of this commit is to add '-> StorageInterface', so all storage
users automatically get type-checked.

But mypy was whining about the multiple imports, so this commit also
deduplicates the import statements as a side-effect.

Details

Provenance
vlorentzAuthored on Jul 29 2020, 3:13 PM
vlorentzPushed on Jul 30 2020, 1:53 PM
Differential Revision
D3640: Add type annotations on get_storage.
Parents
rDSTOe63b78c6f9b2: buffer: Pass lists to backend functions, not iterables.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14088
Build 21636: test-and-buildJenkins console · Jenkins