Mypy-boto3

Latest version: v1.34.108

Safety actively analyzes 629959 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 31

7.17.0

Notes

As you know, the builder not only generates type annotations, but it also supplies tons of `TypeDef`s that you can use in your code for type checking. Starting from this release `TypeDef`s not only generated for `TypedDict`s to help you with method inputs and outputs, but they also include named `Union`s!

This is especially helpful for `dynamodb` service because it has a complex `TableAttributeTypeDef` `Union`. However, I added support for all `Union`s, even for small ones, even for the ones added in version `7.16.0` to merge input and output shapes! Just import them from `<service_name>.type_defs` and start using them in your projects!

Small usage example just for you:

python
import boto3
from mypy_boto3_s3.type_defs import BlobTypeDef, PutObjectOutputTypeDef

BlobTypeDef is a Union[str, bytes, IO[Any], botocore.response.StreamingBody]
let's use it in our function!

def put_object(body: BlobTypeDef) -> PutObjectOutputTypeDef:
s3_client = boto3.client("s3")
return s3_client.put_object(body=body)


Keep on keeping on!

Added
- `[services]` All `Union`s now have named type annotations in `type_defs.py` (requested by perlow in 196)
- `[builder]` `TypeUnion` type annotation to support named `Union`s
- `[builder]` `TypeDefSortable` protocol to topologically sort both `TypedDict`s and `Union`s
- `[docs]` Added named `Union`s support

Changed
- `[docs]` `TypeDef` usage examples were removed to make docs lighter

Fixed
- `[builder]` Formatting with `black` and `isort` uses temp path
- `[builder]` Moved reusable templates to `templates/common`
- `[dynamodb]` Replace `AttributeValueTypeDef` with `TableAttributeValueTypeDef` in `Table` methods output (reported by fizyk in 210)
- `[iam]` Fixed `PolicyDocumentTypeDef` with hardcode, bug in `botocore` (reported by skeggsein 212)

7.16.2

Fixed
- `[builder]` All method arguments accept both input and output shapes (reported by potiuk in 209)

Updated packages

- `mypy-boto3-appflow 1.28.15.post1`
- `mypy-boto3-dynamodb 1.28.15.post1`

7.16.1

Fixed
- `[builder]` `TypedDict` topological sort now always succeeds (fallback to alphabetical sort is still here just in case)
- `[builder]` Fixed infinite loop on `TypedDict` comparison
- `[builder]` `TypedDict` sorting is now consistent and should
- `[types-aiobotocore]` Added `ServiceResource` import to library top level `__init__.py`

7.16.0

Notes

Something weird happened just two weeks ago:
- I revived the project and fixed multiple outstanding issues
- Downloads skyrocketed to 400000 per day!
- We reached 5 million monthly downloads!
- We no longer have any reported bugs to fix :(

Is it good? It depends. However, it was never about numbers. It was always about your feedback.

In this release, I introduced some breaking changes, so you might need to update your `TypeDef`s-related code. Please report any issue issues you encounter, feel free to suggest new features, and even submit Pull Requests. I love Pull Requests!

Keep on keeping on!

Breaking changes
- Some `...TypeDef`s now have a separate `...OutputTypeDef` due to the totality check fix
- Some `...TypeDef`s now have a separate `...ResponseTypeDef` due to the totality check fix
- `...ResponseMetadataTypeDef`s were renamed to `...ResponseTypeDef`

Changed
- `[docker]` Rebased Docker image to Python 3.11.4 on Alpine 3.18
- `[builder]` New `botocore` changelog parser
- `[builder]` Support for incremental builds for a `botocore` version range (no CLI support yet)

Fixed
- `[builder]` `TypedDict` comparison no longer considers different key totality as equal
- `[builder]` Argument alias map is now in line with other patch maps and supports all services
- `[appflow]` Fixed inconsistent typing for input shapes (reported by potiuk in 209)

7.15.2

Fixed
- `[all]` Output shapes are no longer mark all keys as required if it is not guaranteed (reported by sodul)
- `[docs]` Updated generated readmes
- `[builder]` Fixed error on retrieving PyPI version for a new package

7.15.1

Fixed
- `[types-aiobotocore]` Updated to `aiobotocore 2.5.2`
- `[types-aioboto3]` Updated to `aioboto3 11.2.0`
- `[dynamodb]` `Table` is no longer inherited from `TableResource` to fix `types-aiobotocore` for `py311` (reported by filipsnastins in 207)
- `[builder]` `version.py` files are no longer generated for aio libs

Updated packages
- `types-aiobotocore-dynamodb 2.5.0.post4`
- `types-aiobotocore-dynamodb 2.5.2.post2`

Page 4 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.