Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix ruff errors

Jorge Balazs642e076453d8
diff --git a/dsp/modules/aws_lm.py b/dsp/modules/aws_lm.py
index 68fbd0d8a..366d0d1ed 100644
--- a/dsp/modules/aws_lm.py
+++ b/dsp/modules/aws_lm.py
@@ -60,7 +60,7 @@ class AWSLM(LM):
self.predictor = boto3.client(service_name, region_name=region_name)
else:
self.predictor = boto3.Session(profile_name=profile_name).client(
- service_name, region_name=region_name
+ service_name, region_name=region_name,
)
@abstractmethod
diff --git a/dsp/modules/bedrock.py b/dsp/modules/bedrock.py
index bf6386307..252c87fe8 100644
--- a/dsp/modules/bedrock.py
+++ b/dsp/modules/bedrock.py
@@ -1,7 +1,7 @@
from __future__ import annotations
-from typing import Any, Optional
import json
+from typing import Any, Optional
from dsp.modules.aws_lm import AWSLM