Skip to content

Commit

Permalink
Attempt to fix metaclass conflict error in Python 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmitsch committed Sep 20, 2023
1 parent 6c035a6 commit 2863e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy_llm/ty.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def parse_responses(
TaskContraT = TypeVar("TaskContraT", bound=LLMTask, contravariant=True)


class FewshotExample(abc.ABC, GenericModel, Generic[TaskContraT]):
class FewshotExample(GenericModel, Generic[TaskContraT]):
@classmethod
@abc.abstractmethod
def generate(cls, example: Example, task: TaskContraT) -> Self:
Expand Down

0 comments on commit 2863e54

Please sign in to comment.