-
Notifications
You must be signed in to change notification settings - Fork 0
Feature implementation from commits 5f922ff..45d4dfd #1
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
base: feature-base-1
Are you sure you want to change the base?
Conversation
We now subset Type-1 fonts and no longer have a copy of ttconv. Make the font comparison table a grid table so we can use a colspan cell. Clarify that Type-1 fonts get used only in the usetex/pdf combination.
Signed-off-by: Emmanuel Ferdman <[email protected]>
Throw exception when alpha is out of bounds
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Co-authored-by: hannah <[email protected]>
Co-authored-by: hannah <[email protected]>
Co-authored-by: hannah <[email protected]>
Co-authored-by: hannah <[email protected]>
Update font-related documentation
TST: Fix runtime error checking NaN input to format_cursor_data
Fixed an off-by-half-pixel bug in image resampling when using a nonaffine transform (e.g., a log axis)
raise TypeError(f"'alpha' must be numeric or None, not {type(alpha)}") | ||
if not 0 <= alpha <= 1: | ||
ValueError("'alpha' must be between 0 and 1, inclusive") | ||
raise ValueError("'alpha' must be between 0 and 1, inclusive") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛 Correctness Issue
Missing 'raise' keyword causes silent validation failure.
The ValueError was being created but not raised, allowing invalid alpha values to silently pass validation and potentially cause rendering issues.
Current Code (Diff):
- ValueError("'alpha' must be between 0 and 1, inclusive")
+ raise ValueError("'alpha' must be between 0 and 1, inclusive")
📝 Committable suggestion
‼️ IMPORTANT
Trust, but verify! 🕵️ Please review this suggestion with the care of a code archaeologist - check that it perfectly replaces the highlighted code, preserves all lines, maintains proper indentation, and won't break anything in production. Your future self will thank you! 🚀
raise ValueError("'alpha' must be between 0 and 1, inclusive") | |
raise ValueError("'alpha' must be between 0 and 1, inclusive") |
This PR contains changes from a range of commits from the original repository.
Commit Range:
5f922ff..45d4dfd
Files Changed: 8 (5 programming files)
Programming Ratio: 62.5%
Commits included:
... and 7 more commits