-
Notifications
You must be signed in to change notification settings - Fork 439
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
Checks for type checks that do not raise TypeError #6002
base: main
Are you sure you want to change the base?
Conversation
@pyvista-bot LGTM |
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.
✅ Approving this PR because tkoyama010 said so in here
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6002 +/- ##
=======================================
Coverage 96.92% 96.92%
=======================================
Files 140 140
Lines 24376 24376
=======================================
Hits 23626 23626
Misses 750 750 |
@pyvista-bot LGTM |
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.
✅ Approving this PR because tkoyama010 said so in here
Pull request was converted to draft
self._name = color_names.get(self.hex_rgb, None) | ||
except ValueError as e: | ||
except TypeError as e: |
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.
except TypeError as e: | |
except (ValueError, TypeError) as e: |
The _from_rgba
and _from_str
methods can still raise a ValueError
. I haven't checked the other changes here, but be careful there as well when changing the exception type.
Overview
Checks for type checks that do not raise TypeError.
Details