Skip to content

Commit

Permalink
Fix python 3.10 issue, and update cursor rules with 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Feb 16, 2025
1 parent 107f598 commit e5bd880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Always assume pydantic 2 (not pydantic 1)
- Always use pytest for tests
- The project supports Python 3.10 and above

4 changes: 2 additions & 2 deletions libs/core/kiln_ai/adapters/prompt_builders.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from abc import ABCMeta, abstractmethod
from enum import StrEnum
from enum import Enum
from typing import Annotated, Dict

from pydantic import AfterValidator
Expand Down Expand Up @@ -397,7 +397,7 @@ def chain_of_thought_prompt(self) -> str | None:


# Generators that can take any task and build a prompt
class PromptGenerators(StrEnum):
class PromptGenerators(str, Enum):
SIMPLE = "simple_prompt_builder"
MULTI_SHOT = "multi_shot_prompt_builder"
FEW_SHOT = "few_shot_prompt_builder"
Expand Down

0 comments on commit e5bd880

Please sign in to comment.