-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add Type Hints and py.typed Support for zenpy #671
Comments
I'm still thinking about this :) |
Type hints would be nice. |
Haha just got to the Juicy part, sorry for thought stream in Issues...but this made me chuckle a little bit :) "Python will remain a dynamically typed language, and the authors have no desire to ever make type hints mandatory, even by convention." That is not stopping my curiosity :P Continuing reading :P |
someone showed me the easy button: https://github.com/Instagram/MonkeyType |
Hi,
Thank you for creating and maintaining the
zenpy
library! It’s been incredibly useful for our projects.I’d like to request adding type hints and
py.typed
support to the library to improve compatibility with static type checkers likemypy
. Currently, when usingzenpy
withmypy
, we encounter the following errors:These errors occur because
zenpy
does not include type annotations or apy.typed
marker file. Adding type hints would greatly enhance the developer experience by enabling type checking and better IDE support.Suggested Solution:
py.typed
marker file in the package to indicate that it supports type hints (PEP 561).Benefits:
mypy
and other static type checkers.If adding type hints directly to the library is not feasible, an alternative could be to provide type stubs (
.pyi
files) in a separate package or include them in the repository.Thank you for considering this request, and please let me know if there’s anything I can do to help with this effort!
The text was updated successfully, but these errors were encountered: