Skip to content

Commit

Permalink
Update to 0.19.17
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 26, 2023
1 parent ebce084 commit 5974540
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 81 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This package is a part of [mypy_boto3_builder](https://github.com/youtype/mypy_b
- [types-awscrt](#types-awscrt)
- [Installation](#installation)
- [Usage](#usage)
- [Latest changes](#latest-changes)
- [Versioning](#versioning)
- [Support and contributing](#support-and-contributing)

Expand All @@ -32,10 +31,6 @@ python -m pip install types-awscrt

Use [mypy](https://github.com/python/mypy) or [pyright](https://github.com/microsoft/pyright) for type checking.

### Latest changes

Full changelog can be found in [Releases](https://github.com/youtype/types-awscrt/releases).

## Versioning

`types-awscrt` version is the same as related `awscrt` version and follows
Expand Down
20 changes: 20 additions & 0 deletions awscrt-stubs/mqtt5.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,24 @@ class UserProperty:
name: Optional[str] = ...
value: Optional[str] = ...

class OutboundTopicAliasBehaviorType(IntEnum):
DEFAULT: int
MANUAL: int
LRU: int
DISABLED: int

class InboundTopicAliasBehaviorType(IntEnum):
DEFAULT: int
ENABLED: int
DISABLED: int

@dataclass
class TopicAliasingOptions:
outbound_behavior: Optional[OutboundTopicAliasBehaviorType] = ...
outbound_cache_max_size: Optional[int] = ...
inbound_behavior: Optional[InboundTopicAliasBehaviorType] = ...
inbound_cache_max_size: Optional[int] = ...

@dataclass
class NegotiatedSettings:
maximum_qos: Optional[QoS] = ...
Expand All @@ -196,6 +214,7 @@ class ConnackPacket:
retain_available: Optional[bool] = ...
maximum_packet_size: Optional[int] = ...
assigned_client_identifier: Optional[str] = ...
topic_alias_maximum: Optional[int] = ...
reason_string: Optional[str] = ...
user_properties: Optional[Sequence[UserProperty]] = ...
wildcard_subscriptions_available: Optional[bool] = ...
Expand Down Expand Up @@ -345,6 +364,7 @@ class ClientOptions:
ping_timeout_ms: Optional[int] = ...
connack_timeout_ms: Optional[int] = ...
ack_timeout_sec: Optional[int] = ...
topic_aliasing_options: Optional[TopicAliasingOptions] = ...
on_publish_callback_fn: Optional[Callable[[PublishReceivedData], None]] = ...
on_lifecycle_event_stopped_fn: Optional[Callable[[LifecycleStoppedData], None]] = ...
on_lifecycle_event_attempting_connect_fn: Optional[
Expand Down
12 changes: 8 additions & 4 deletions awscrt-stubs/s3.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ from awscrt.auth import AwsSigningConfig
from awscrt.exceptions import AwsCrtError
from awscrt.http import HttpRequest as HttpRequest
from awscrt.io import ClientBootstrap as ClientBootstrap
from awscrt.io import TlsConnectionOptions as TlsConnectionOptions
from awscrt.io import TlsConnectionOptions

class CrossProcessLock(NativeResource):
def __init__(self, lock_scope_name: str) -> None: ...
Expand Down Expand Up @@ -55,7 +55,7 @@ class S3Client(NativeResource):
def __init__(
self,
*,
bootstrap: Optional[ClientBootstrap],
bootstrap: Optional[ClientBootstrap] = ...,
region: str,
tls_mode: Optional[S3RequestTlsMode] = ...,
signing_config: Optional[AwsSigningConfig] = ...,
Expand All @@ -64,12 +64,14 @@ class S3Client(NativeResource):
part_size: Optional[int] = ...,
multipart_upload_threshold: Optional[int] = ...,
throughput_target_gbps: Optional[float] = ...,
memory_limit: Optional[int] = ...,
) -> None: ...
def make_request(
self,
*,
request: HttpRequest,
type: S3RequestType,
request: HttpRequest,
operation_name: Optional[str] = ...,
signing_config: Optional[AwsSigningConfig] = ...,
credential_provider: Optional[AwsCredentialsProvider] = ...,
checksum_config: Optional[S3ChecksumConfig] = ...,
Expand All @@ -91,8 +93,9 @@ class S3Request(NativeResource):
self,
*,
client: S3Client,
request: HttpRequest,
type: S3RequestType,
request: HttpRequest,
operation_name: Optional[str] = ...,
signing_config: Optional[AwsSigningConfig] = ...,
credential_provider: Optional[AwsCredentialsProvider] = ...,
checksum_config: Optional[S3ChecksumConfig] = ...,
Expand Down Expand Up @@ -122,6 +125,7 @@ class S3ResponseError(AwsCrtError):
status_code: Optional[List[Tuple[str, str]]] = ...,
headers: Optional[List[Tuple[str, str]]] = ...,
body: Optional[bytes] = ...,
operation_name: Optional[str] = ...,
) -> None: ...

class _S3ClientCore:
Expand Down

0 comments on commit 5974540

Please sign in to comment.