You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add support for typing with mypy #563
Using the aws_encryption_sdk in a project with mypy produces this error:
error: Skipping analyzing "aws_encryption_sdk": module is installed, but missing library stubs or py.typed marker
Solution:
I attempted to simply add the py.typed marker file to my virtualenv and it seems not as simple, a lot of other incompatibilities.
Maybe stubs or .pyi could be provided
"Hi maintainers! I’ve been analyzing this issue with mypy. Running mypy against aws_encryption_sdk surfaces ~60 internal type errors largely stemming from attr.s usage and dynamic assignments. To address this cleanly for downstream consumers without risking breaking changes to internal logic, I'd like to propose adding PEP 561 compliance via a py.typed marker and .pyi stubs for the primary public APIs (init, identifiers, materials_managers, and EncryptionSDKClient).
Activity
[-]Feature request: Add support typing / mypy[/-][+]Feature request: Add support for typing with mypy[/+]texastony commentedon Mar 1, 2024
@lindycoder
Thank you for the Feature Request.
We will try and improve our typing support.
Leaving open as an enhancement.
harivamsi9 commentedon May 15, 2024
Hey! Is this issue still open?
Can I take this as my first issue and contribute?
ShyamD2 commentedon Sep 8, 2026
"Hi maintainers! I’ve been analyzing this issue with mypy. Running mypy against aws_encryption_sdk surfaces ~60 internal type errors largely stemming from attr.s usage and dynamic assignments. To address this cleanly for downstream consumers without risking breaking changes to internal logic, I'd like to propose adding PEP 561 compliance via a py.typed marker and .pyi stubs for the primary public APIs (init, identifiers, materials_managers, and EncryptionSDKClient).
feat: add .pyi stub files for primary public API (aws#563)