fix serialisation of SopsKey type

This commit is contained in:
Jörg Thalheim
2024-10-01 15:40:50 +02:00
committed by Mic92
parent 9c25b4d61c
commit 160fe82576
3 changed files with 29 additions and 15 deletions

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
import enum
import io
import json
@@ -27,7 +25,7 @@ class KeyType(enum.Enum):
PGP = enum.auto()
@classmethod
def validate(cls, value: str | None) -> KeyType | None: # noqa: ANN102
def validate(cls, value: str | None) -> "KeyType | None": # noqa: ANN102
if value:
return cls.__members__.get(value.upper())
return None