Skip to content

Commit

Permalink
Add missing CRTTransferManager stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Aug 27, 2024
1 parent 898c99d commit 3e78319
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
s3transfer-stubs/py.typed
s3transfer-stubs/*.pyi
s3transfer-stubs/*/*.pyi
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config-settings = { editable-mode = "strict" }
dev-dependencies = [
"setuptools",
"pre-commit",
"awscrt",
"s3transfer",
"botocore",
"mypy",
Expand Down
7 changes: 7 additions & 0 deletions s3transfer-stubs/crt.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ from typing import (
Callable,
Dict,
Iterator,
List,
Mapping,
Optional,
Sequence,
Expand All @@ -26,6 +27,7 @@ from s3transfer.subscribers import BaseSubscriber
from s3transfer.utils import CallArgs as CallArgs
from s3transfer.utils import OSUtils as OSUtils
from s3transfer.utils import get_callbacks as get_callbacks
from s3transfer.manager import TransferManager

_R = TypeVar("_R")

Expand All @@ -44,6 +46,11 @@ def create_s3_crt_client(
) -> S3Client: ...

class CRTTransferManager:
ALLOWED_DOWNLOAD_ARGS: List[str] = ...
ALLOWED_UPLOAD_ARGS: List[str] = ...
ALLOWED_DELETE_ARGS: List[str] = ...
VALIDATE_SUPPORTED_BUCKET_VALUES: bool = ...

def __init__(
self,
crt_s3_client: S3Client, # type: ignore
Expand Down
42 changes: 42 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e78319

Please sign in to comment.