-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Added add_periodic_callback coroutine typing #3714
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wolph! Just a minor suggestion.
The `add_periodic_callback` method only had the `Callable` type hint while it also supports asyncio functions. This adds that type hint so `pyright` won't complain anymore :)
Codecov Report
@@ Coverage Diff @@
## master #3714 +/- ##
=======================================
Coverage 83.56% 83.56%
=======================================
Files 207 207
Lines 29654 29678 +24
=======================================
+ Hits 24779 24801 +22
- Misses 4875 4877 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Test failures are unrelated, merging. |
Thanks @wolph! |
The
add_periodic_callback
method only had theCallable
type hint while it also supports asyncio functions. This adds that type hint sopyright
won't complain anymore :)