Skip to content

Commit 82e40ce

Browse files
committed
Linting
1 parent ae1589f commit 82e40ce

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

replicate/use.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from replicate.run import make_schema_backwards_compatible
2222
from replicate.version import Version
2323

24-
2524
__all__ = ["use", "get_path_url"]
2625

2726

tests/test_use.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def capture_request(request):
398398
)
399399

400400
# Pass the OutputIterator as input to create()
401-
run = hotdog_detector.create(text_input=output)
401+
hotdog_detector.create(text_input=output)
402402

403403
# Verify the request body contains the stringified version
404404
parsed_body = json.loads(request_body)
@@ -610,7 +610,7 @@ async def test_use_iterator_of_paths_output(use_async_client):
610610

611611
def test_get_path_url_with_pathproxy():
612612
"""Test get_path_url returns the URL for PathProxy instances."""
613-
from replicate.use import get_path_url, PathProxy
613+
from replicate.use import PathProxy, get_path_url
614614

615615
url = "https://example.com/test.jpg"
616616
path_proxy = PathProxy(url)
@@ -623,7 +623,7 @@ def test_get_path_url_with_regular_path():
623623
"""Test get_path_url returns None for regular Path instances."""
624624
from replicate.use import get_path_url
625625

626-
regular_path = Path("/tmp/test.txt")
626+
regular_path = Path("test.txt")
627627

628628
result = get_path_url(regular_path)
629629
assert result is None
@@ -651,7 +651,7 @@ def test_get_path_url_with_object_with_target():
651651
from replicate.use import get_path_url
652652

653653
class MockObjectWithTarget:
654-
def __init__(self, target):
654+
def __init__(self, target) -> None:
655655
object.__setattr__(self, "__replicate_target__", target)
656656

657657
url = "https://example.com/mock.png"
@@ -666,7 +666,7 @@ def test_get_path_url_with_empty_target():
666666
from replicate.use import get_path_url
667667

668668
class MockObjectWithEmptyTarget:
669-
def __init__(self, target):
669+
def __init__(self, target) -> None:
670670
object.__setattr__(self, "__replicate_target__", target)
671671

672672
# Test with empty string
@@ -729,7 +729,7 @@ def capture_request(request):
729729

730730
# Call use and create with PathProxy
731731
hotdog_detector = replicate.use("acme/hotdog-detector")
732-
run = hotdog_detector.create(image=path_proxy)
732+
hotdog_detector.create(image=path_proxy)
733733

734734
# Verify the request body contains the URL, not the downloaded file
735735
parsed_body = json.loads(request_body)

0 commit comments

Comments
 (0)