Skip to content

Support for PEP 561 #6

@JoeyBG

Description

@JoeyBG

Hi!

This looks great. Currently, there seems to be no way to use this properly with a type checker (such as mypy) to validate code.

From their documentation (https://mypy.readthedocs.io/en/latest/installed_packages.html and the linked PEP) it seems that there is a couple options available:

  1. Include a py.typed blank file in the package
  2. Rename the package to boto3-stubs or something similar and generate .pyi files instead of .py

Not sure how 2) would play with IDEs and stuff...

If it's something that you would be willing to add support for, I could be interested in helping out a bit.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions