Skip to content

Commit 407dcca

Browse files
authored
Rename modules to module (#8407)
* rename modules to module * fix react
1 parent 5f3ebdc commit 407dcca

File tree

14 files changed

+13
-15
lines changed

14 files changed

+13
-15
lines changed

dspy/predict/chain_of_thought.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pydantic.fields import FieldInfo
44

55
import dspy
6-
from dspy.primitives.modules import Module
6+
from dspy.primitives.module import Module
77
from dspy.signatures.field import OutputField
88
from dspy.signatures.signature import Signature, ensure_signature
99

dspy/predict/multi_chain_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dspy.predict.predict import Predict
2-
from dspy.primitives.modules import Module
2+
from dspy.primitives.module import Module
33
from dspy.signatures import InputField, OutputField
44
from dspy.signatures.signature import ensure_signature
55

dspy/predict/predict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from dspy.clients.lm import LM
99
from dspy.dsp.utils.settings import settings
1010
from dspy.predict.parameter import Parameter
11-
from dspy.primitives.modules import Module
11+
from dspy.primitives.module import Module
1212
from dspy.primitives.prediction import Prediction
1313
from dspy.signatures.signature import ensure_signature
1414

dspy/predict/program_of_thought.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Optional, Type, Union
55

66
import dspy
7-
from dspy.primitives.modules import Module
7+
from dspy.primitives.module import Module
88
from dspy.primitives.python_interpreter import PythonInterpreter
99
from dspy.signatures.signature import Signature, ensure_signature
1010

dspy/predict/react.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import dspy
77
from dspy.adapters.types.tool import Tool
8-
from dspy.primitives.modules import Module
8+
from dspy.primitives.module import Module
99
from dspy.signatures.signature import ensure_signature
1010

1111
logger = logging.getLogger(__name__)

dspy/primitives/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from dspy.primitives.base_module import BaseModule
22
from dspy.primitives.example import Example
3-
from dspy.primitives.modules import Module
3+
from dspy.primitives.module import Module
44
from dspy.primitives.prediction import Completions, Prediction
55
from dspy.primitives.python_interpreter import PythonInterpreter
66

dspy/primitives/modules.py renamed to dspy/primitives/module.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TODO: Rename to module.py
21
import inspect
32
import logging
43
from typing import Optional

dspy/streaming/streamify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
logger = logging.getLogger(__name__)
2222

2323
if TYPE_CHECKING:
24-
from dspy.primitives.modules import Module
24+
from dspy.primitives.module import Module
2525

2626

2727
def streamify(

dspy/streaming/streaming_listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from dspy.streaming.messages import StreamResponse
1212

1313
if TYPE_CHECKING:
14-
from dspy.primitives.modules import Module
14+
from dspy.primitives.module import Module
1515

1616

1717
class StreamListener:

dspy/teleprompt/bettertogether.py

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

55
import dspy
66
from dspy.primitives.example import Example
7-
from dspy.primitives.modules import Module
7+
from dspy.primitives.module import Module
88
from dspy.teleprompt.bootstrap_finetune import (
99
BootstrapFinetune,
1010
all_predictors_have_lms,

0 commit comments

Comments
 (0)