Skip to content

Commit 65902c4

Browse files
committed
update linting
1 parent a900248 commit 65902c4

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

jigsawstack/vision.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ def vocr(
215215
return resp
216216

217217
@overload
218-
def object_detection(
219-
self, params: ObjectDetectionParams
220-
) -> ObjectDetectionResponse: ...
218+
def object_detection(self, params: ObjectDetectionParams) -> ObjectDetectionResponse: ...
221219
@overload
222220
def object_detection(
223221
self, blob: bytes, options: ObjectDetectionParams = None
@@ -297,9 +295,7 @@ async def vocr(
297295
return resp
298296

299297
@overload
300-
async def object_detection(
301-
self, params: ObjectDetectionParams
302-
) -> ObjectDetectionResponse: ...
298+
async def object_detection(self, params: ObjectDetectionParams) -> ObjectDetectionResponse: ...
303299
@overload
304300
async def object_detection(
305301
self, blob: bytes, options: ObjectDetectionParams = None

tests/test_object_detection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
jigsaw = jigsawstack.JigsawStack(api_key=os.getenv("JIGSAWSTACK_API_KEY"))
1919
async_jigsaw = jigsawstack.AsyncJigsawStack(api_key=os.getenv("JIGSAWSTACK_API_KEY"))
2020

21-
IMAGE_URL = "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
21+
IMAGE_URL = (
22+
"https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
23+
)
2224

2325
TEST_CASES = [
2426
{
@@ -102,9 +104,7 @@ def test_object_detection(self, test_case):
102104
if test_case.get("blob"):
103105
# Download blob content
104106
blob_content = requests.get(test_case["blob"]).content
105-
result = jigsaw.vision.object_detection(
106-
blob_content, test_case.get("options", {})
107-
)
107+
result = jigsaw.vision.object_detection(blob_content, test_case.get("options", {}))
108108
else:
109109
# Use params directly
110110
result = jigsaw.vision.object_detection(test_case["params"])

0 commit comments

Comments
 (0)