Skip to content
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

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Conversation

wolph
Copy link
Contributor

@wolph wolph commented Jul 23, 2022

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 :)

Copy link
Member

@maximlt maximlt left a 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.

panel/io/state.py Outdated Show resolved Hide resolved
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 :)
panel/io/state.py Outdated Show resolved Hide resolved
panel/io/state.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 25, 2022

Codecov Report

Merging #3714 (8bb8f9f) into master (ff39f02) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3714   +/-   ##
=======================================
  Coverage   83.56%   83.56%           
=======================================
  Files         207      207           
  Lines       29654    29678   +24     
=======================================
+ Hits        24779    24801   +22     
- Misses       4875     4877    +2     
Flag Coverage Δ
ui-tests 31.88% <ø> (-0.03%) ⬇️
unitexamples-tests 78.21% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
panel/io/state.py 68.25% <ø> (ø)
panel/tests/util.py 84.37% <0.00%> (-2.09%) ⬇️
panel/tests/test_param.py 99.66% <0.00%> (-0.23%) ⬇️
panel/io/server.py 76.35% <0.00%> (-0.21%) ⬇️
panel/tests/test_depends.py 100.00% <0.00%> (ø)
panel/param.py 86.64% <0.00%> (+0.48%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us.

@philippjfr
Copy link
Member

Test failures are unrelated, merging.

@philippjfr philippjfr merged commit 05264da into holoviz:master Jul 26, 2022
@philippjfr
Copy link
Member

Thanks @wolph!

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