Skip to content

fix __repr__ methods for uninitialized BoxExpressions - #1990

Merged
rocky merged 1 commit into
masterfrom
fix_repr_UninitializedBoxExpressions
Oct 13, 2026
Merged

rocky merged 1 commit into
masterfrom
fix_repr_UninitializedBoxExpressions

Conversation

@mmatera

@mmatera mmatera commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

This PR handles a hidden issue that only manifests in debugging, when we try to print the repr of a FunctionApplyRule. For rules associated to methods of BoxExpressions, __repr__(function) calls the __repr__ method of an uninitialized BoxExpression (RowBox, InterpretationBox, StyleBox), and produced an exception. This PR fixes this behavior.

@rocky

rocky commented Oct 13, 2026

Copy link
Copy Markdown
Member

LGTM

@rocky
rocky merged commit 4aa7411 into master Oct 13, 2026
15 checks passed
@rocky
rocky deleted the fix_repr_UninitializedBoxExpressions branch October 13, 2026 11:29
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