-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstopic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
What's the problem this feature will solve?
The current data structure for assertion AST, which contains assertion explanations, is a large chunk of string generated in rewrite.py. This string is then passed to format_explanation for further formatting.
Describe the solution you'd like
Implement a more flexible data structure (such as a tree) to construct the assertion explanations. This structure can then provide the string representation when needed, allowing for greater flexibility and potential improvements in how explanations are handled and formatted.
Alternative Solutions
Additional context
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstopic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch