Skip to content

Releases: youtype/mypy_boto3_builder

2.0.0

09 Jun 15:08
292643e
Compare
Choose a tag to compare

Notes

  • mypy_boto3 run for dynamic annotations is completely optional
  • Use submodule imports: import mypy_boto3.s3 -> import mypy_boto3_s3

Added

  • References support for all resources (affects ec2)

Changed

  • Wheels packages support

Removed

  • Post-install scripts, build dynamic annotations manually if you need boto3.client/resource annotations

1.1.1

06 Jun 15:54
1ec25dc
Compare
Choose a tag to compare

Notes

The following changes are included to boto3_stubs 1.13.24.2 and above.

Fixed

  • blob streaming shapes annotated as IO[bytes], non-streaming: bytes (affects s3 and some other services)

1.1.0

06 Jun 15:23
7c0d573
Compare
Choose a tag to compare

Notes

The following changes are included to boto3_stubs 1.13.24.1 and above.

Added

  • Macie2 service support (kudos to @jbpratt78)
  • boto3-stubs[all] extra support to install all service packages (PyCharm performance can be poor if all packages are installed)

Fixed

  • Default value for kwargs from argspec (affects s3 package and probably others)
  • Definitions order in type_defs.py (affects rds-data package)

1.0.9

03 May 17:04
b115ee1
Compare
Choose a tag to compare

Fixed

  • Release publish workflow
  • Linting issues

1.0.8

03 May 16:36
e015c7a
Compare
Choose a tag to compare

Added

  • IoTSiteWise service support
  • Synthetics service support

1.0.7

08 Apr 21:28
81141dd
Compare
Choose a tag to compare

Fixed

  • Submodule install command in PyPI docs #17

1.0.6 - Collection Pages

25 Mar 17:18
dbd8822
Compare
Choose a tag to compare

Notes

The following changes are included in boto3_stubs 1.12.28.1 and above.

boto3-stubs changes

  • Client.exceptions.Exception now has type Type[ClientError]. ClientError is still Any as it comes from untyped botocore
  • Collection.pages return type set to correct Generator[List[Obj], None, None]
  • RDSClient.generate_db_auth_token return type set to correct str

mypy-boto3-builder changes

  • If method docstring has no :rtype: and :returns: contains url - return type is set to str

1.0.5 - Collection Methods

10 Mar 00:20
4113576
Compare
Choose a tag to compare

Notes

This release includes a hotfix for Collection method return type revealed as Any.

The following changes are included in boto3_stubs 1.12.17.1 and above.

boto3-stubs changes

  • Fixed Collection methods return types revealed as Any

mypy-boto3-builder changes

  • Removed TypeVar alias usage for resources and collections
  • Added more clear logic for using future type annotations
  • Unit tests coverage is now above 70%!
  • Docker image rebased to Python 3.8.2

1.0.4 - Iterable Collections

05 Mar 03:15
6734e03
Compare
Choose a tag to compare

Notes

This release should add sub-resources to all resources, fix iteration over collections and fix return types for resource methods that return other resources (mainly for s3 and sqs).

The following changes are included in boto3_stubs 1.12.14.1 and above.

boto3-stubs changes

  • Collections no longer use class methods
  • Added Collection.__iter__ method annotation
  • Fixed Collection.pages return type
  • Return type of Paginator.paginate uses Iterator instead of Generator
  • Added SubResource create methods to all resources
  • Removed fallback to *args, **kwargs on empty docstring for all methods
  • Fixed return type of Resource methods that return other resources

mypy-boto3-builder changes

  • Fixed incorrect resources render order on self-return type in methods
  • Fixed underscore prefix usage for string type annotations
  • Added typing.Iterator support
  • Prefer shape.resource return type over shape.operation.response
  • Added shape.resource.path support
  • Fixed potential invalid syntax in service_resource.py

1.0.3 - Presigned URLs

27 Feb 00:25
3aaf0fb
Compare
Choose a tag to compare

Notes

This release should fix incorrect argument and return types for client methods.

The following changes are included in boto3_stubs 1.12.8.1 and above.

Changes

  • botocore shapes now have higher priority than inspect.argspec for client methods
  • client.get_presigned_url now should have a correct return type for all services