Conversation
Comment on lines
+329
to
+330
| def test_upload_auto_and_strategy_endpoints() -> None: | ||
| async def scenario() -> tuple[list[dict[str, object]], object, object, object]: |
There was a problem hiding this comment.
🟢 Low storage/test_storage_client.py:329
The return type annotation tuple[list[dict[str, object]], object, object, object] declares 4 elements, but the function returns 5 elements: calls, auto, confirm, upload_strategy, download_strategy. This causes type checkers to flag the return statement as invalid. Consider updating the annotation to tuple[list[dict[str, object]], object, object, object, object].
Suggested change
| def test_upload_auto_and_strategy_endpoints() -> None: | |
| async def scenario() -> tuple[list[dict[str, object]], object, object, object]: | |
| def test_upload_auto_and_strategy_endpoints() -> None: | |
| async def scenario() -> tuple[list[dict[str, object]], object, object, object, object]: |
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file tests/storage/test_storage_client.py around lines 329-330:
The return type annotation `tuple[list[dict[str, object]], object, object, object]` declares 4 elements, but the function returns 5 elements: `calls, auto, confirm, upload_strategy, download_strategy`. This causes type checkers to flag the return statement as invalid. Consider updating the annotation to `tuple[list[dict[str, object]], object, object, object, object]`.
Evidence trail:
tests/storage/test_storage_client.py lines 329-385 at REVIEWED_COMMIT: Line 329 shows `async def scenario() -> tuple[list[dict[str, object]], object, object, object]:` (4 tuple elements). Line 385 shows `return calls, auto, confirm, upload_strategy, download_strategy` (5 return values).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Note
Add bucket admin and object management helpers to
StorageClientcreate_bucket,update_bucket, anddelete_bucketmethods for bucket administration.list_objectswith pagination and search support,upload_object_autofor multipart form uploads,confirm_upload,get_upload_strategy, andget_download_strategy.StorageBucketResponse,StorageBucketUpdateResponse,StoredFileList,UploadStrategy,DownloadStrategy,StorageDeleteBucketResponse, andStorageDownloadResult.download_objectnow returns aStorageDownloadResultdataclass (withcontent,content_type, andcontent_length) instead of raw bytes.📊 Macroscope summarized ea26659. 4 files reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues