Skip to content

Commit c09a652

Browse files
committed
CM-58022-fix strenum
1 parent 11d0879 commit c09a652

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cycode/cli/apps/scan/prompt/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
"""Type definitions for AI guardrails."""
2+
from enum import Enum
23

3-
from enum import StrEnum
4+
5+
class StrEnum(str, Enum):
6+
def __str__(self) -> str:
7+
return self.value
48

59

610
class AiHookEventType(StrEnum):

0 commit comments

Comments
 (0)