Skip to content

Commit

Permalink
fix types issues
Browse files Browse the repository at this point in the history
  • Loading branch information
micpst committed Aug 17, 2024
1 parent b202ea3 commit 596868e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extra/prompt_tuning/tuning/loaders.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from abc import ABC, abstractmethod
from typing import Dict, Iterable, List
from typing import Iterable, List

import dspy.datasets
from dspy import Example
from omegaconf import DictConfig


class DataLoader(ABC):
"""
Data loader.
"""

def __init__(self, config: Dict) -> None:
def __init__(self, config: DictConfig) -> None:
self.config = config

@abstractmethod
Expand Down

0 comments on commit 596868e

Please sign in to comment.