boto3-stubs-lite 1.37.13__py3-none-any.whl → 1.41.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
boto3-stubs/compat.pyi CHANGED
@@ -5,9 +5,11 @@ Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
7
  import os
8
+ from typing import Any
8
9
 
9
10
  SOCKET_ERROR: type[ConnectionError]
10
11
 
11
- def filter_python_deprecation_warnings() -> None: ...
12
-
13
12
  rename_file = os.rename
13
+
14
+ def filter_python_deprecation_warnings() -> None: ...
15
+ def is_append_mode(fileobj: Any) -> bool: ...
boto3-stubs/s3/inject.pyi CHANGED
@@ -4,6 +4,7 @@ Type annotations for boto3.s3.inject module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
+ import logging
7
8
  from typing import IO, Any, Callable
8
9
 
9
10
  from boto3 import utils as utils
@@ -14,6 +15,8 @@ from boto3.s3.transfer import create_transfer_manager as create_transfer_manager
14
15
  from botocore.client import BaseClient
15
16
  from botocore.exceptions import ClientError as ClientError
16
17
 
18
+ logger: logging.Logger = ...
19
+
17
20
  def inject_s3_transfer_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
18
21
  def inject_bucket_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
19
22
  def inject_object_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
@@ -119,6 +122,7 @@ def object_upload_fileobj(
119
122
  Callback: Callable[..., Any] | None = ...,
120
123
  Config: TransferConfig | None = ...,
121
124
  ) -> None: ...
125
+ def disable_threading_if_append_mode(config: TransferConfig, fileobj: IO[Any]) -> None: ...
122
126
  def download_fileobj(
123
127
  self: Any,
124
128
  Bucket: str,
@@ -51,6 +51,7 @@ class TransferConfig(S3TransferConfig):
51
51
  class S3Transfer:
52
52
  ALLOWED_DOWNLOAD_ARGS: list[str]
53
53
  ALLOWED_UPLOAD_ARGS: list[str]
54
+ ALLOWED_COPY_ARGS: list[str]
54
55
  def __init__(
55
56
  self,
56
57
  client: BaseClient | None = ...,
boto3-stubs/utils.pyi CHANGED
@@ -4,20 +4,19 @@ Type annotations for boto3.utils module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
- from typing import Any
7
+ from typing import Any, NamedTuple
8
8
 
9
9
  from botocore.model import ServiceModel
10
10
  from botocore.session import Session
11
11
  from botocore.waiter import Waiter, WaiterModel
12
12
 
13
- class ServiceContext:
14
- def __init__(
15
- self,
16
- service_name: str,
17
- service_model: ServiceModel,
18
- service_waiter_model: WaiterModel | None,
19
- resource_json_definitions: dict[str, Any],
20
- ) -> None: ...
13
+ class _ServiceContext(NamedTuple):
14
+ service_name: str
15
+ service_model: ServiceModel
16
+ service_waiter_model: WaiterModel | None
17
+ resource_json_definitions: dict[str, Any]
18
+
19
+ class ServiceContext(_ServiceContext): ...
21
20
 
22
21
  def import_module(name: str) -> Any: ...
23
22
  def lazy_call(full_name: str, **kwargs: Any) -> Any: ...