Skip to content

Releases: youtype/mypy_boto3_builder

8.1.2

23 Sep 06:52
d2c7af9
Compare
Choose a tag to compare

Fixed

  • [services] Self-references in TypedDicts, Unions and Subscripts are replaced with corresponding types to avoid recursion
  • [builder] Universal input-output TypeDefs were overlapped in some cases

8.1.1

18 Sep 18:16
6399205
Compare
Choose a tag to compare

Fixed

  • [aiobotocore] Some boto3 imports were not wrapped in try-except to be available without boto3 installed
  • [builder] ResponseTypeDef name clash resolution was potentially incorrect

Updated packages

  • types-aiobotocore-dynamodb 2.15.0.post1

8.1.0 - All-in-one Packages

16 Sep 23:24
083cd9a
Compare
Choose a tag to compare

Notes

This release add support for full packages for boto3-stubs, types-aiobotocore, and types-aioboto3.

  • boto3-stubs-full - Type annotations for all botocore services, install with pip install 'boto3-stubs[full]'
  • types-aiobotocore-full - Type annotations for all aiobotocore services, install with pip install 'types-aiobotocore[full]' or pip install 'types-aioboto3[full]'

Added

  • [boto3-stubs] full extra that installs boto3-stubs-full
  • [types-aiobotocore] full extra that installs types-aiobotocore-full
  • [types-aioboto3] full extra that installs types-aiobotocore-full
  • [docs] Instructions how to install full packages

Changed

  • [builder] Installed aioboto3/aiobotocore package is no longer required, latest version from PyPI is used if it is missing
  • [builder] Refactored import strings sorting logic, imports with fallback and Python min version required are grouped

8.0.1

31 Aug 05:02
c085019
Compare
Choose a tag to compare

Fixed

  • [builder] Allow to use mypy_boto3_builder as a module

8.0.0 - Unpack Syntax

31 Aug 03:52
ee6bf13
Compare
Choose a tag to compare

Notes

  • Starting from this release builder requires Python 3.12+. However, generated packages still support Python 3.8+
  • Packages generation is 2 times faster due to new template rendering and code formatting approach
  • New **kwargs: Unpack[RequestTypeDef] syntax for all kw-only methods and functions
  • Output code formatting uses ruff instead of isort and black

Added

  • [builder] New documentation and usage instructions
  • [builder] New CLI argument --download-static-stubs that allows to fetch the latest static stubs from GitHub instead of built-in
  • [services] New **kwargs: Unpack[RequestTypeDef] syntax for all kw-only methods and functions

Changed

  • [builder] Twice as fast packages generation due to optimizations in processing and formatting
  • [builder] Import sorting in output files is now performed by ruff instead of isort (20x faster!)
  • [builder] Code formatting in output files is now performed by ruff instead of black (40x faster!)
  • [services] Generated package size reduced by 20%

Fixed

  • [services] Output TypedDict clashing was not resolved correctly in some cases, shadowing output TypeDef
  • [builder] Formatting did not use minimal support Python version correctly
  • [builder] Required imports with fallback with minimal sys.version required are sorted correctly
  • [builder] Multiple performance optimizations
  • [builder] *-full package data was incorrect
  • [builder] *-full package name was incorrect

7.26.1

21 Aug 18:18
fa03c48
Compare
Choose a tag to compare

Fixed

  • [builder] Switched from newversion.Version to packaging.Version
  • [types-aiobotocore] StreamingBody.iter_chunks returns AsyncIterator[bytes] (reported by @vikigenius in #309)
  • [types-aiobotocore] StreamingBody.iter_lines returns AsyncIterator[bytes]

Updated packages

  • types-aiobotocore 2.13.1.post1
  • types-aiobotocore-lite 2.13.1.post1
  • types-aiobotocore 2.13.2.post1
  • types-aiobotocore-lite 2.13.2.post1

7.26.0 - Typed Identifiers

14 Aug 14:48
6b07057
Compare
Choose a tag to compare

Notes

Hello!

So, it looks like boto3 does not properly support identifiers in botocore shapes. For example: boto/boto3#3501.

All attributes and arguments generated for identifiers now have str type in boto3. However, some identifiers have type key, so related attributes and arguments should use this type instead.

This release adds support for typed identifiers, as well as a proper override in case type cannot be correctly determined from shapes.

Changed

  • [builder] New logic for resource.identifiers: support for typed identifiers and manual override

Fixed

  • [builder] Overriden method type map is checked before universal type map
  • [s3] MultipartUploadPart.part_number has int type (reported by @daveisfera in #307)
  • [s3] MultipartUpload.Part method part_number argument has int type (manual override) (reported by @daveisfera in #307)
  • [s3] ServiceResource.MultipartUploadPart method part_number argument has int type (reported by @daveisfera in #307)

7.25.3

10 Aug 10:32
8ea2150
Compare
Choose a tag to compare

Fixed

  • [s3] Accept str as well in CopySource argument override for Object.copy_from and ObjectSummary.copy_from

7.25.2

10 Aug 10:26
5b8af72
Compare
Choose a tag to compare

Fixed

  • [s3] Added CopySource argument override for Object.copy_from and ObjectSummary.copy_from (reported by @Kache in #308)

7.25.1

10 Aug 03:52
5314aa4
Compare
Choose a tag to compare

Fixed

  • [types-aioboto3] Static stubs updated to the latest version
  • [types-aiobotocore] Static stubs updated to the latest version
  • [builder] Formatting tools bumped to the latest version