-
Notifications
You must be signed in to change notification settings - Fork 24
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 types + Make library PEP-561 compatible #528
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3842 |
The "fix" in my repo is to add the following to my config pyproject.toml
|
@Andrioden even I agree with you. Typing surely brings more power to the code. In the subsequent iterations, we will surely cover missing types from the code. |
Feel free to raise more suggestions and create a PR if possible : ) |
Related to #480 |
Why
I love types, and want everything in python typed as strongly as possible within reason. This creates more readable code and makes refactoring easier and safer. If i debug my code that depend on ably code, i find myself stepping into untyped ably code, this makes it harder to read.
The following import triggers an mypy error
game\utils\event_publisher.py
Running
mypy .
In addition i see the very prominent
Channel.publish
is not typed.My suggestions are
Read more here
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: