Skip to content

Commit edf1188

Browse files
committed
fix: rm relative imports
1 parent bbd4d00 commit edf1188

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

src/agent/utils/parse_json_context_to_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
from typing import List, Optional, Dict, Any, Union
6-
from .prompt_context_templates import PromptFormatter
6+
from src.agent.utils.prompt_context_templates import PromptFormatter
77

88
# Definitions questionSubmissionSummary type
99
class StudentLatestSubmission:

src/module.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
from lf_toolkit.chat.result import ChatResult as Result
44
from lf_toolkit.chat.params import ChatParams as Params
55

6-
try:
7-
from .agent.utils.parse_json_context_to_prompt import parse_json_to_prompt
8-
from .agent.agent import invoke_base_agent
9-
from .agent.utils.types import JsonType
10-
except ImportError:
11-
from src.agent.utils.parse_json_context_to_prompt import parse_json_to_prompt
12-
from src.agent.agent import invoke_base_agent
13-
from src.agent.utils.types import JsonType
6+
from src.agent.utils.parse_json_context_to_prompt import parse_json_to_prompt
7+
from src.agent.agent import invoke_base_agent
8+
from src.agent.utils.types import JsonType
149

1510
def chat_module(message: Any, params: Params) -> JsonType:
1611
"""

tests/test_index.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import unittest
22
import json
3-
4-
try:
5-
from ..index import handler
6-
except ImportError:
7-
from index import handler
3+
from index import handler
84

95
class TestChatIndexFunction(unittest.TestCase):
106
"""

0 commit comments

Comments
 (0)