Skip to content

Return NotImplemented from AVRational's operators - #2397

Merged
WyattBlue merged 1 commit into
mainfrom
patch
Aug 26, 2026
Merged

Return NotImplemented from AVRational's operators#2397
WyattBlue merged 1 commit into
mainfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

The fallbacks for non-AVRational operands were written as operators on a Fraction, which evaluates the binary-op protocol internally and collapses Fraction's NotImplemented into a TypeError before we see it. Call the Fraction dunder directly so it propagates.

The fallbacks for non-AVRational operands were written as operators on
a Fraction, which evaluates the binary-op protocol internally and
collapses Fraction's NotImplemented into a TypeError before we see it.
Call the Fraction dunder directly so it propagates.
@WyattBlue
WyattBlue merged commit 853f5be into main Aug 26, 2026
8 checks passed
@WyattBlue
WyattBlue deleted the patch branch August 26, 2026 17:55
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.

1 participant