Skip to content

Fix conversion rule#9

Merged
yhteoh merged 3 commits intomainfrom
fix_conversion_rule
Sep 4, 2025
Merged

Fix conversion rule#9
yhteoh merged 3 commits intomainfrom
fix_conversion_rule

Conversation

@yhteoh
Copy link
Copy Markdown
Contributor

@yhteoh yhteoh commented Sep 4, 2025

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    Custom rules for dict, list and tuples in a ConversionRule do not apply appropriately.
    When applying such a rule, to a dict, list or tuple attribute, the dict list or tuple is mutated immediately rather than leaving it untouched with the changes recorded in the operands.

  • What is the new behavior (if this is a feature change)?

  • Allows for custom rules for dict, list and tuples in a ConversionRule to have access to the unmodified AST node (dict, list or tuple) as the model argument and the modified attributes/elements in the operands argument.
  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    Changes in behavior with ConversionRule with dict, list and tuple rules

  • Other information:

yhteoh added 3 commits August 27, 2025 12:42
… the AST node before any modification and the value of attributes after applying rule on the attributes.
@yhteoh yhteoh merged commit b744a07 into main Sep 4, 2025
15 checks passed
@yhteoh yhteoh deleted the fix_conversion_rule branch September 4, 2025 17:56
@yhteoh yhteoh requested review from benjimaclellan and removed request for benjimaclellan September 4, 2025 17:59
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