Skip to content

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