We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3ca17 commit 60a486bCopy full SHA for 60a486b
1 file changed
acapy_agent/anoncreds/models/predicate.py
@@ -2,7 +2,7 @@
2
3
from collections import namedtuple
4
from enum import Enum
5
-from typing import Any
+from typing import Any, Union
6
7
Relation = namedtuple("Relation", "fortran wql math yes no")
8
@@ -55,7 +55,7 @@ def math(self) -> str:
55
return self.value.math
56
57
@staticmethod
58
- def get(relation: str) -> "Predicate" | None:
+ def get(relation: str) -> Union["Predicate", None]:
59
"""Return enum instance corresponding to input relation string."""
60
61
for pred in Predicate:
0 commit comments