瀏覽代碼

FlexiKey: define STORAGE in base class

avoids some mypy warnings.
Thomas Waldmann 2 年之前
父節點
當前提交
f9078ebfa9
共有 1 個文件被更改,包括 1 次插入0 次删除
  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):