Skip to content

Commit 60a486b

Browse files
committed
🎨 Fix union with lazy type
Signed-off-by: ff137 <ff137@proton.me>
1 parent 6a3ca17 commit 60a486b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

acapy_agent/anoncreds/models/predicate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from collections import namedtuple
44
from enum import Enum
5-
from typing import Any
5+
from typing import Any, Union
66

77
Relation = namedtuple("Relation", "fortran wql math yes no")
88

@@ -55,7 +55,7 @@ def math(self) -> str:
5555
return self.value.math
5656

5757
@staticmethod
58-
def get(relation: str) -> "Predicate" | None:
58+
def get(relation: str) -> Union["Predicate", None]:
5959
"""Return enum instance corresponding to input relation string."""
6060

6161
for pred in Predicate:

0 commit comments

Comments
 (0)