feed ruff

This commit is contained in:
Patrick Devine 2025-01-13 16:42:31 -08:00
parent f5c8ee0a3e
commit fc8585eabd
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import os import os
import io
import json import json
import platform import platform
import ipaddress import ipaddress
@ -62,7 +61,6 @@ from ollama._types import (
ProgressResponse, ProgressResponse,
PullRequest, PullRequest,
PushRequest, PushRequest,
RequestError,
ResponseError, ResponseError,
ShowRequest, ShowRequest,
ShowResponse, ShowResponse,

View File

@ -946,7 +946,7 @@ async def test_async_client_create_with_blob(httpserver: HTTPServer):
client = AsyncClient(httpserver.url_for('/')) client = AsyncClient(httpserver.url_for('/'))
with tempfile.NamedTemporaryFile() as blob: with tempfile.NamedTemporaryFile():
response = await client.create('dummy', files={'test.gguf': 'sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'}) response = await client.create('dummy', files={'test.gguf': 'sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'})
assert response['status'] == 'success' assert response['status'] == 'success'
@ -972,7 +972,7 @@ async def test_async_client_create_with_parameters_roundtrip(httpserver: HTTPSer
client = AsyncClient(httpserver.url_for('/')) client = AsyncClient(httpserver.url_for('/'))
with tempfile.NamedTemporaryFile() as blob: with tempfile.NamedTemporaryFile():
response = await client.create( response = await client.create(
'dummy', 'dummy',
quantize='q4_k_m', quantize='q4_k_m',