Skip to content

Commit 643f901

Browse files
committed
fix: remove draft code
1 parent 7a155b0 commit 643f901

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

aiob2/bucket.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import datetime
24
import logging
35
from typing import Optional, Literal, Dict, List, Any
@@ -7,7 +9,7 @@
79
from .models import (
810
File,
911
DeletedFile,
10-
DownloadedFile
12+
DownloadedFile,
1113
)
1214
from .http import HTTPClient
1315
from .file import LargeFile
@@ -161,15 +163,16 @@ async def upload_file(
161163
)
162164
return File(data)
163165

164-
async def upload_large_file(
166+
async def start_large_file_upload(
165167
self,
166168
bucket_id: str,
167169
file_name: str,
168170
content_type: Optional[str] = None,
169171
upload_timestamp: Optional[datetime.datetime] = None,
170172
comments: Optional[Dict[Any, Any]] = None
171173
) -> LargeFile:
172-
"""Creates a large file to upload parts/chunks to incrementally.
174+
"""Creates a large file to upload parts/chunks to incrementally. See `LargeFile.upload_part` and
175+
`LargeFile.chunk_file`.
173176
174177
Parameters
175178
----------

aiob2/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@
3131
from .errors import BackblazeServerError, Forbidden, HTTPException, NotFound, RateLimited, Unauthorized
3232
from .models.account import AccountAuthorizationPayload, Permissions
3333
from .models.file import LargeFilePartPayload, PartialFilePayload, UploadPayload
34-
from .models.bucket import ListBucketPayload
3534
from .utils import MISSING
3635

3736
if TYPE_CHECKING:
3837
from typing_extensions import Self
3938
from types import TracebackType
40-
from .models.bucket import BucketType
4139

4240
BE = TypeVar('BE', bound=BaseException)
4341
T = TypeVar('T')

aiob2/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
__all__ = (
44
'File',
55
'DeletedFile',
6-
'DownloadedFile',
6+
'DownloadedFile'
77
)

0 commit comments

Comments
 (0)