Skip to content

0.4.0 - Literally New Parser

Compare
Choose a tag to compare
@vemel vemel released this 02 Dec 23:41
· 298 commits to master since this release

This version is very close to what I have planned initially, so it is no longer an Alpha. From now on, builds are automated, so a new version of boto3-stubs should be released within 2-3 hours after boto3 release. Thanks everyone for testing and feedback!

You can help this project by submitting PRs to botocore as there are some errors in their documentation:

  • Missing :rtype: statement for functions that return bool is s3 documentation
  • Invalid unindent in ce, cloudfront, cognito-idp, elasticache and elastictranscoder documentation
  • Float values in syntax documentation replaced with ... for some reason.
  • dynamodb does not have simplified annotation for ExpressionAttributeValues even though it is supported.

Stay tuned, we are getting closer to the first stable release!

Highlights

  • typing_extensions are no longer required for py38+
  • Added Literal and Union types support

mypy-boto3-builder changes

  • Changed PyPi status to Beta
  • Added pyparsing requirement
  • typing_extensions are no longer required for py38+
  • Added type_defs module for compatibility between typing and typing_extensions
  • Added DocstringParser class that extracts info from request/response botocore syntax and Sphinx argument definitions. Syntax is the source of truth for arguments and return types now
  • Added ArgSpecParser class that extracts function arguments from inspect.argspec
  • Added fix for incorrect indentation in botocore docs
  • Removed --skip-stubs CLI argument, use --skip-master instead
  • Added --panic CLI argument to fail on warning (usually it is unsuccessful parsing)

mypy-boto3 and subpackages changes

  • Changed PyPi status to Beta
  • typing_extensions are no longer required for py38+
  • Added type_defs module for compatibility between typing and typing_extensions
  • Added Literal and Union annotations extracted from request/response syntax
  • Cleaned up generated type_defs documentation
  • Union of the same type is unwrapped for readability

mypy-boto3 bugfixes

  • Removed extra empty line in TypedDict definition with no docstring
  • Fixed some functions having return type None instead of bool due to incorrect documentation
  • Fixed silencing of undocumented methods

Auto builds changes

  • mypy-boto3-builder is now published to PyPI on release
  • mypy_boto3 is built by latest mypy-boto3-builder release instead of master