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

Don't raise TypeError for a class containing __panel__ and not Viewer #4174

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Dec 5, 2022

Don't raise TypeError for a class containing __panel__ and not pn.viewable.Viewer by checking if the class is an instance of type before checking if it is a subclass.

Before:
image

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #4174 (4587118) into master (47fd67e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4174   +/-   ##
=======================================
  Coverage   83.62%   83.62%           
=======================================
  Files         224      224           
  Lines       33515    33520    +5     
=======================================
+ Hits        28026    28031    +5     
  Misses       5489     5489           
Flag Coverage Δ
ui-tests 37.62% <16.66%> (+<0.01%) ⬆️
unitexamples-tests 74.63% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
panel/pane/base.py 88.75% <100.00%> (ø)
panel/tests/test_viewable.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@philippjfr philippjfr left a comment

Choose a reason for hiding this comment

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

Looks good!

@philippjfr philippjfr merged commit fe95a02 into master Dec 6, 2022
@philippjfr philippjfr deleted the panel_non_viewer_class branch December 6, 2022 10:14
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.

None yet

2 participants