prism_core를 Python 3.10 호환으로 — StrEnum(3.11+) 대체 클래스

계획서 평가환경(py3.10) 컨테이너에서 ⑧ 파이프라인 실행 가능하게

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
민헌andClaude Fable 5 committed 2026-09-01 11:57:20 +09:00
1 parent 49bcbb1cc5
commit 04c8624646
1 file changed
+7 -1
@@ -12,7 +12,13 @@ protocol 에 한 벌 더 정의하면 필드 추가 때마다 두 곳이 어긋
import time import time
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from collections import deque from collections import deque
from enum import StrEnum from enum import Enum
class StrEnum(str, Enum):
"""py3.10 호환 — 3.11의 enum.StrEnum 대체"""
def __str__(self) -> str: # StrEnum과 동일한 문자열 표현
return str(self.value)
from typing import Optional from typing import Optional
from pydantic import BaseModel, Field from pydantic import BaseModel, Field