Page MenuHomeSoftware Heritage

Declare ArchiveInterface and ProvenanceInterface as Protocol
ClosedPublic

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

Details

Summary

and add missing type annotations here and there.

Depends on D5073

Diff Detail

Repository
R222 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.Thu, Feb 18, 2:05 PM