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 28 of 31

3.0.0

Highlights

- `mypy_boto3` CLI command is no longer needed, stubs are pre-generated for all services
- `pyright` is fully supported and now is main priority
- `mypy`, `VSCode (Pylance)` and `PyCharm` are still supported
- `mypy_boto3.<service_name>` imports no longer work, use `mypy_boto3_<service_name>`

Changed

- All type stubs were converted to `pyi` files (pyright support)
- `boto3.client/resource` overloads for all services are pre-generated, which renders `mypy_boto3` CLI useless
- `Session.client/resource` overloads for all services are pre-generated, which renders `mypy_boto3` CLI useless
- Updated `black+isort` for generated files

Fixed

- Imports were sorted incorrectly in generated `boto3-stubs`
- Some imports were incorrectly marked as unused by `pylint`
- `botocore.client.ClientError` is correctly handled by `pyright`

2.4.0

Added

- [Appflow](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/appflow.html) service support
- [Bracket](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bracket.html) service support
- [Honeycode](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/honeycode.html) service support
- [IdentityStore](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/identitystore.html) service support
- [IVS](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ivs.html) service support
- Support building annotation for services that were not added yet (class names can be different once service is added)

Fixed

- `ec2.<resource>.create_tags` method type annotations
- `ec2.Instance.delete_tags` method type annotations

2.3.1

Notes

Fix dockerized version and rebased to `python:3.8.5-alpine3.11`

2.3.0

Notes

The following changes are included to `boto3_stubs 1.14.51.1` and above.

So, we are going to switch to `pyright` eventually. The problem that `pyright` is smart enough to not follow imports in `*.pyi` files, like `mypy` does. Starting from this version, `pyright` should be able to properly recognize explicit type annotations.

Starting from the next version, I will try to use pre-generated type annotations for all boto3 services, so explicit type annotation will no longer be required for `pyright`. However, this will make `mypy` unusable, because 200+ function overloads will consume too much RAM. Anyway, we now know the difference between `mypy` and `pyright` stubs handling, so there should be a proper solution.

Added

- Stubs for `boto3.docs.utils` (partial)
- Initial `pyright` support

Fixed

- Added `Client.meta` annotation for all services
- `EC2Client.create_tags`/`EC2Client.delete_tags` allow `Tags=None`
- `ec2` resources `create_tags` annotation is now correct (`Image.create_tags` etc.)
- `DynamoDBClient` `query` and `scan` methods accept `boto3.dynamo.conditions.ConditionBase` in expressions
- Fix sorting of generated classes in all modules

2.2.0

Added

- `isort` as a direct dependency
- Automated sanity check for generated packages

Changed

- Imports in all generated packages are sorted with `isort`

Fixed

- `boto3.resource("ec2").delete_tags` annotation did not have `self` argument
- Resource type annotations use aliases on conflict with Resource method name (affects all services)
- `botocore.ResourceCollection.pages` return type annotation was `List[Resource]` instead of an `Iterator[List[Resource]]`
- `botocore.ResourceCollection.filter` overrides are type ignored because arguments are different and it is expected
- All pylint/mypy warning in all generated packages
- Circular imports in packages type defs ( affects `fsx`, `ce`, `wafv2`, maybe others)

2.1.0

Added

- `CodeArtifact` service support with a new `mypy_boto3_codeartifact` package

Changed

- Updated documentation for all services
- Updated module docstrings in generated packages

Page 28 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.