Page MenuHomeSoftware Heritage

Declare ArchiveInterface and ProvenanceInterface as Protocol
ClosedPublic

Authored by douardda on Feb 16 2021, 3:44 PM.

Details

Summary

and add missing type annotations here and there.

Depends on D5073

Diff Detail

Repository
rDPROV Provenance database
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.
aeviso added a subscriber: aeviso.

I guess this is the correct way to define interfaces in Python. I don't get way ArchiveStorage doesn't inherit from ArchiveInterface though.

This revision is now accepted and ready to land.Feb 18 2021, 2:05 PM