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

Checks for type checks that do not raise TypeError #6002

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

tkoyama010
Copy link
Member

Overview

Checks for type checks that do not raise TypeError.

Details

@tkoyama010 tkoyama010 enabled auto-merge (squash) April 30, 2024 23:34
@pyvista-bot pyvista-bot added the maintenance Low-impact maintenance activity label Apr 30, 2024
@tkoyama010
Copy link
Member Author

@pyvista-bot LGTM

pyvista-bot
pyvista-bot previously approved these changes Apr 30, 2024
Copy link
Contributor

@pyvista-bot pyvista-bot left a 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 :shipit:

pyvista/core/pointset.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented May 1, 2024

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 96.92%. Comparing base (4799560) to head (dcc21d4).

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           

@tkoyama010
Copy link
Member Author

@pyvista-bot LGTM

pyvista-bot
pyvista-bot previously approved these changes May 1, 2024
Copy link
Contributor

@pyvista-bot pyvista-bot left a 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 :shipit:

@tkoyama010 tkoyama010 marked this pull request as draft May 1, 2024 01:02
auto-merge was automatically disabled May 1, 2024 01:02

Pull request was converted to draft

tests/plotting/test_charts.py Outdated Show resolved Hide resolved
tests/plotting/test_charts.py Outdated Show resolved Hide resolved
self._name = color_names.get(self.hex_rgb, None)
except ValueError as e:
except TypeError as e:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Low-impact maintenance activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants