Sfoglia il codice sorgente

FlexiKey: define STORAGE in base class

avoids some mypy warnings.
Thomas Waldmann 2 anni fa
parent
commit
f9078ebfa9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/borg/crypto/key.py

+ 1 - 0
src/borg/crypto/key.py

@@ -417,6 +417,7 @@ class AESKeyBase(KeyBase):
 
 class FlexiKey:
     FILE_ID = "BORG_KEY"
+    STORAGE = KeyBlobStorage.NO_STORAGE  # override in subclass
 
     @classmethod
     def detect(cls, repository, manifest_data):