Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krypticmouse committed Mar 13, 2024
1 parent 846124d commit cd78c4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dspy/experimental/synthesizer/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import Optional, Any
from typing import Any, Optional

from pydantic import BaseModel, model_validator


class SynthesizerArguments(BaseModel):
feedback_mode: Optional[str] = None
num_example_for_feedback: Optional[int] = None
Expand Down
9 changes: 5 additions & 4 deletions dspy/experimental/synthesizer/synthesizer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import dspy
import random
from collections.abc import Mapping
from typing import List, Optional, Union

from datasets import Dataset
from tqdm import tqdm, trange
from rich import print as rprint
from collections.abc import Mapping
from typing import List, Optional, Union
from tqdm import tqdm, trange

import dspy

from .config import SynthesizerArguments
from .instruction_suffixes import (
Expand Down
4 changes: 3 additions & 1 deletion dspy/experimental/synthesizer/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import dspy
from typing import List

import dspy


def format_examples(examples: List[dspy.Example]) -> str:
if isinstance(examples, str):
return examples
Expand Down

0 comments on commit cd78c4d

Please sign in to comment.