Skip to content

Commit

Permalink
sdk/python: object file utils type-hint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Koo <[email protected]>
  • Loading branch information
rkoo19 committed Oct 21, 2024
1 parent 614deb4 commit a19c88d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/aistore/sdk/obj/obj_file/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
#

from typing import Iterator, Optional
from typing import Iterator, Optional, Tuple

from aistore.sdk.obj.content_iterator import ContentIterator
from aistore.sdk.utils import get_logger
Expand Down Expand Up @@ -66,7 +66,7 @@ def handle_chunked_encoding_error(
resume_total: int,
max_resume: int,
err: Exception,
) -> tuple[Iterator[bytes], int]:
) -> Tuple[Iterator[bytes], int]:
"""
Handle the chunked encoding error by incrementing the resume count, logging a warning,
and resetting the iterator from the last known position.
Expand All @@ -79,7 +79,7 @@ def handle_chunked_encoding_error(
err (Exception): The error that caused the resume attempt.
Returns:
tuple[Iterator[bytes], int]: The new iterator and the updated resume total.
Tuple[Iterator[bytes], int]: The new iterator and the updated resume total.
Raises:
ObjectFileMaxResumeError: If the maximum number of resume attempts is exceeded.
Expand Down

0 comments on commit a19c88d

Please sign in to comment.