Skip to content

Releases: youtype/mypy_boto3_builder

7.20.1

10 Nov 13:31
d97ceaa
Compare
Choose a tag to compare

Fixed

  • [builder] --no-smart-version flag is disabled by default

7.20.0 - No Exceptions

10 Nov 13:22
c61d0ef
Compare
Choose a tag to compare

Added

  • [mypy-boto3] Up-to-date ServiceName and ResourceServiceName to mypy_boto3.literals module (reported by @jvtm in #231)
  • [builder] type_def.render_definition` helper method
  • [builder] Jinja2 template caching

Changed

  • [all] Replaced BaseException with Exception everywhere
  • [builder] Updated black/isort
  • [builder] Refactored injected TypeDefs to support service-specific injections

Fixed

  • [boto3-stubs] Session.get_credentials returns Credentials | None (fixed by @aripollak in #234)
  • [types-aioboto3] Session.get_credentials returns AioCredentials | None
  • [types-aioboto3] Removed default values in Session type annotations
  • [types-aiobotocore] Session.get_credentials returns AioCredentials | None
  • [builder] All type annotations support copy interface
  • [builder] Simplified rendering of type annotations

7.19.1

28 Oct 03:16
2495250
Compare
Choose a tag to compare

Fixed

  • [builder] Fixes for Python 3.13 support
  • [dynamodb] AttributeBase.name typing added (fixed by @fivepapertigers in #230)
  • [formatting] Update to latest black/isort

7.19.0 - Offline First

07 Sep 11:08
172fd5b
Compare
Choose a tag to compare

Notes

Hello, fellow citizens!

Starting from this version, --no-smart-version flag allows you to run the builder in offline mode. Thanks to @mbalatsko for this change!

Keep sending me bug reports and feature requests, I am all for it.

Keep on keeping on!

Changed

  • [builder] --no-smart-version flag prevents pulling package data from PyPI to allow running in offline mode (implemented by @mbalatsko in #225)

Fixed

  • [all] New docstring wrapper to avoid breaking MarkDown links in botocore docstrings
  • [pca-connector-ad] Fixed invalid escaping in docstrings

7.18.2

30 Aug 09:30
0f73ecf
Compare
Choose a tag to compare

Fixed

  • [all] String shapes are no longer interpreted as Dict[str, Any] (reported by @sodul in #223)

7.18.1

29 Aug 11:53
998a517
Compare
Choose a tag to compare

Fixed

  • [all] String shapes with a pattern are converted to Dict[str, Any] only if pattern fully matches JSON parsing pattern
  • [sts] Fixed Client.get_caller_identity type annotations (reported by @Wurstnase in #222)

7.18.0 - Pydantic Typing

28 Aug 12:20
b9cebf4
Compare
Choose a tag to compare

Notes

G'day!

Finally, boto3-stubs is fully compatible with pydantic 2.x. TypedDict, Literal, and NotRequired are imported from typing_extensions for Python 3.7 - 3.11. However, no code changes are required on your side. The only change is that your py37-py311 projects will now depend on typing_extensions

With pydantic 2.x support, we can finally switch to a new TypedDict rendering with a NotRequired type annotation wrapper. This change decreased type_defs.py size by 10% and overall looks nicer.

Since the changes are quite big, please report any bugs that you encounter, and do not forget to request new features.

Keep on keeping on!

Changed

  • [all] Literal and TypedDict are imported from typing_extensions for py311 and below (suggested by @tobni in #221)
  • [all] Switched to a new TypedDict renderer
  • [all] New detection and replacement logic for self-referencing TypeDefs

Fixed

  • [all] Potential incorrect imports for Union-only TypeDefs
  • [builder] Speed up required import mapping

7.17.3

16 Aug 15:13
4664b54
Compare
Choose a tag to compare

Fixed

  • [dynamodb] Waiters and Paginators use separate type maps (reported by @Weber-Tr in #217)
  • [iam] String shapes are handled as JSON objects in they have JSON pattern
  • [s3] Mark arguments as optional properly in injected methods (reported by @caner-cetin in #218)

7.17.2

04 Aug 11:11
ed39626
Compare
Choose a tag to compare

Fixed

  • [docs] Removed TypeDefs list from service docs to shorten readmes (reported by @kevinnowland in #215)
  • [dynamodb] Replaced TableAttributeValueTypeDef with AttributeValueTypeDef in outputs other than ServiceResource and Table (reported by @BrentSouza in #216)

7.17.1

01 Aug 10:56
55ba622
Compare
Choose a tag to compare

Fixed

  • [builder] Removed dependency on typing_extensions