Skip to content

feat: add PEP 561 py.typed marker to support mypy type analysis (#563) - #817

Open
ShyamD2 wants to merge 1 commit into
aws:masterfrom
ShyamD2:feat/add-py-typed-marker
Open

feat: add PEP 561 py.typed marker to support mypy type analysis (#563)#817
ShyamD2 wants to merge 1 commit into
aws:masterfrom
ShyamD2:feat/add-py-typed-marker

Conversation

@ShyamD2

@ShyamD2 ShyamD2 commented Sep 8, 2026

Copy link
Copy Markdown

Issue #, if available:
Fixes #563
Description of changes:
Adds PEP 561 compliance so downstream projects using mypy can analyze aws_encryption_sdk without receiving error: Skipping analyzing "aws_encryption_sdk": module is installed, but missing library stubs or py.typed marker.

Summary of Changes:

  • Added src/aws_encryption_sdk/py.typed containing the partial marker per PEP 561.
  • Updated setup.py to include package_data={"aws_encryption_sdk": ["py.typed"]} so wheel packages bundle the marker.
  • Updated MANIFEST.in with include src/aws_encryption_sdk/py.typed for source distribution packaging.

Verification:

Tested with mypy analyzing public client initialization:

$ mypy -c "import aws_encryption_sdk; client = aws_encryption_sdk.EncryptionSDKClient()"
Success: no issues found in 1 source file

@ShyamD2
ShyamD2 requested a review from a team as a code owner September 8, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add support for typing with mypy

1 participant