Skip to content

Controversial pyright fixes #1788

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

Conversation

cspotcode
Copy link
Collaborator

@cspotcode cspotcode commented May 18, 2023

These are the pyright fixes that might involve a bit more discussion and refinement before merging.

@cspotcode cspotcode marked this pull request as draft May 19, 2023 02:50
@cspotcode cspotcode marked this pull request as ready for review May 19, 2023 18:02
Copy link
Member

@pushfoo pushfoo left a comment

Choose a reason for hiding this comment

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

tl;dr I don't have an opinion on the #type: ignore or other elements but do have some concerns about types used in a few places

  1. The previous standard was to use RGBA255 despite technically accepting RGB colors
  2. We should probably use a more specific exception type when the media player gives nonsense values

Copy link
Member

@pushfoo pushfoo left a comment

Choose a reason for hiding this comment

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

Nothing stands out as a problem to me aside from clear, which needed a rework anyway from what I remember from discussing it with einarf.

@cspotcode cspotcode requested a review from pvcraven May 24, 2023 20:25
@einarf einarf merged commit 2381082 into pythonarcade:development May 26, 2023
@cspotcode cspotcode deleted the fix-pyright-errors-controversial branch August 5, 2023 17:22
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.

4 participants