Skip to content

Commit 8903664

Browse files
committed
Apply ruff fix
1 parent b8fe312 commit 8903664

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dsp/modules/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from .anthropic import Claude
12
from .azure_openai import AzureOpenAI
23
from .bedrock import *
34
from .cache_utils import *
@@ -13,4 +14,3 @@
1314
from .pyserini import *
1415
from .sbert import *
1516
from .sentence_vectorizer import *
16-
from .anthropic import Claude

dsp/modules/anthropic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import logging
12
import os
3+
from typing import Any, Optional
4+
25
import backoff
3-
import json
4-
from typing import Optional, Any
56

67
from dsp.modules.lm import LM
7-
import logging
88

99
try:
1010
import anthropic
@@ -41,7 +41,7 @@ def __init__(
4141
model: str = "claude-instant-1.2",
4242
api_key: Optional[str] = None,
4343
api_base: Optional[str] = None,
44-
**kwargs
44+
**kwargs,
4545
):
4646
super().__init__(model)
4747

0 commit comments

Comments
 (0)