Skip to content

Releases: youtype/mypy_boto3_builder

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

1.0.2 - VSCode Inspired

19 Feb 23:27
00c12a8
Compare
Choose a tag to compare

Notes

VSCode does not support auto-complete for string type annotations, which were introduced to add py36 support. So this release is full of VSCode love.

As a result - auto-complete now works as it should everywhere. And lookup performance increased dramatically.

The following changes are included to boto3_stubs 1.12.2.1 and above.

Changes

  • Removed self-import usage, it was hacky and is not supported by MS Python Language Server
  • Removed all possible string type annotations, only a few remain in collections because of circular dependencies
  • Added sorting for resources to avoid using class type annotation before definition
  • Added proper typing for collection class methods
  • Added aliases to local imports to avoid name conflicts
  • Fixed potential syntax errors on empty import strings

1.0.1 - DynamoDB Types

14 Feb 13:29
2f425cc
Compare
Choose a tag to compare

Notes

The following changes are included to boto3_stubs 1.11.17.1 and above.

Added

  • SHAPE_TYPE_MAP to stub botocore shapes overriden by boto3

Changed

  • DocstringParser applies stub fixes based on ServiceName to avoid conflicts between services
  • ShapeParser applies stub fixes based on ServiceName to avoid conflicts between services

DynamoDB

  • Fixed argument and return types for get/put/update/delete/batch methods for client and resources

1.0.0 - Stable At Last

23 Jan 17:56
777bbab
Compare
Choose a tag to compare

Notes

This is the first stable version of mypy_boto3_builder, previous changelogs can be found here

The following changes are included to version boto3_stubs==1.11.7.2 and above.

Changes

  • New project repository, docs, coverage and more!
  • Reorganized project structure.
  • Generated packages now include builder version.

CI Update

23 Jan 17:41
7fe1e7a
Compare
Choose a tag to compare
1.0.0-pre4

Add BUILD_VERSION

CI Update

23 Jan 17:39
41187c4
Compare
Choose a tag to compare
1.0.0-pre3

Fix on_release workflow

CI Update

23 Jan 17:28
3013f42
Compare
Choose a tag to compare
1.0.0-pre2

Change docker package name