Skip to content

Raise exception of blend_func issue #2711

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

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR raises a ValueError exception when blend_func got a wrong tuple.

Signed-off-by: Emmanuel Ferdman <[email protected]>
@einarf einarf requested a review from Copilot June 2, 2025 22:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A concise description of the purpose of the PR, followed by summarized bullets of changes

  • Raises a ValueError when blend_func receives a tuple of invalid length.
  • Adds the missing raise keyword for the error case in blend_func.
Comments suppressed due to low confidence (1)

arcade/gl/backends/opengl/context.py:143

  • Add a unit test to verify that providing an invalid tuple length to blend_func raises ValueError.
def blend_func(self, value: Tuple[int, int] | Tuple[int, int, int, int]):

@einarf einarf merged commit b27ce88 into pythonarcade:development Jun 2, 2025
7 checks passed
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.

2 participants