8000 feat: provide type hints and better DX for new community members/users by sicoyle · Pull Request #143 · dapr/dapr-agents · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: provide type hints and better DX for new community members/users #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2025

Conversation

sicoyle
Copy link
Contributor
@sicoyle sicoyle commented Jun 30, 2025

This PR adds a py.typed marker file and updates myproject.toml to include it in package-data. This signals to type checkers that the package provides inline type annotations, following PEP 561. It improves type-checking support for users of the package, and gives better support in IDEs.

For reference:
https://peps.python.org/pep-0561/#packaging-type-information
https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/

I've also added this in the python sdk for dapr so when we are using their packages, we can benefit from this on a consuming side too :) dapr/python-sdk#812

@yaron2 yaron2 requested review from yaron2 and Cyb3rWard0g as code owners July 1, 2025 14:09
Copy link
Collaborator
@Cyb3rWard0g Cyb3rWard0g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sicoyle ! 🎉

@yaron2 yaron2 merged commit 8f7b9f5 into dapr:main Jul 7, 2025
6 checks passed
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.

3 participants
0