Releases: youtype/mypy_boto3_builder
Releases · youtype/mypy_boto3_builder
8.1.0 - All-in-one Packages
Notes
This release add support for full
packages for boto3-stubs
, types-aiobotocore
, and types-aioboto3
.
boto3-stubs-full
- Type annotations for allbotocore
services, install withpip install 'boto3-stubs[full]'
types-aiobotocore-full
- Type annotations for allaiobotocore
services, install withpip install 'types-aiobotocore[full]'
orpip install 'types-aioboto3[full]'
Added
[boto3-stubs]
full
extra that installsboto3-stubs-full
[types-aiobotocore]
full
extra that installstypes-aiobotocore-full
[types-aioboto3]
full
extra that installstypes-aiobotocore-full
[docs]
Instructions how to install full packages
Changed
[builder]
Installedaioboto3
/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
8.0.0 - Unpack Syntax
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 ofisort
andblack
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 byruff
instead ofisort
(20x faster!)[builder]
Code formatting in output files is now performed byruff
instead ofblack
(40x faster!)[services]
Generated package size reduced by 20%
Fixed
[services]
OutputTypedDict
clashing was not resolved correctly in some cases, shadowing outputTypeDef
[builder]
Formatting did not use minimal support Python version correctly[builder]
Required imports with fallback with minimalsys.version
required are sorted correctly[builder]
Multiple performance optimizations[builder]
*-full
package data was incorrect[builder]
*-full
package name was incorrect
7.26.1
Fixed
[builder]
Switched fromnewversion.Version
topackaging.Version
[types-aiobotocore]
StreamingBody.iter_chunks
returnsAsyncIterator[bytes]
(reported by @vikigenius in #309)[types-aiobotocore]
StreamingBody.iter_lines
returnsAsyncIterator[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
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 forresource.identifiers
: support for typed identifiers and manual override
Fixed
[builder]
Overriden method type map is checked before universal type map[s3]
MultipartUploadPart.part_number
hasint
type (reported by @daveisfera in #307)[s3]
MultipartUpload.Part method
part_number
argument hasint
type (manual override) (reported by @daveisfera in #307)[s3]
ServiceResource.MultipartUploadPart
methodpart_number
argument hasint
type (reported by @daveisfera in #307)
7.25.3
7.25.2
7.25.1
7.25.0 - Full Stubs
Added
[builder]
boto3-stubs-full
package generation support[builder]
types-aiobotocore-full
package generation support
Fixed
[services]
ResponseMetadata
is never added to attribute types[types-aiobotocore]
Updated stubs foraiobotocore.credentials
[types-aiobotocore]
Updated stubs foraiobotocore.config
[types-aioboto3]
Updated stubs fors3.inject
7.24.0 - Output Not Required
Changed
[builder]
OutputTypeDef
keys can be marked as optional[builder]
Bumpedblack
andisort
to the latest versions[ci]
Usingruff
instead offlake8
,isort
andblack
Fixed
[builder]
UnionTypeDef
definitions no longer have clashing names[builder]
OutputTypeDef
map lookup did not work as expected[services]
Literal
names are capitalized even if the underlying shape name is not[services]
Client
/ServiceResource
class names are capitalized even if the service name is not[services]
All potentially optional keys in output shapes marked asNotRequired
[cognito-idp]
NextToken
output key marked asNotRequired
(reported by @filol in #238)[dynamodb]
Item
output key marked asNotRequired
(reported by @pavlobielousov in #241)[s3]
Contents
output key marked asNotRequired
(reported by @raymondbutcher in #242)[s3]
CommonPrefixes
output key marked asNotRequired
(reported by @guilhem-dvr in #248)