Skip to content

fix: expand empty multi-node placeholders without crashing (#365) - #390

Open
sushan5140 wants to merge 1 commit into
TNO:mainfrom
sushan5140:fix/empty-placeholder-365
Open

sushan5140 wants to merge 1 commit into
TNO:mainfrom
sushan5140:fix/empty-placeholder-365

Conversation

@sushan5140

Copy link
Copy Markdown

Fixes #365.

Summary

  • Handle empty $$ placeholder expansions by returning "" instead of raising IndexError.
  • Add a regression case verifying that f() rewrites to g().

Testing

  • Isolated red/green checks: 5/5 passed.
  • Full repository test suite not run locally because the project requires Python 3.14.9 and the available environment lacks the required interpreter and dependencies.
  • Awaiting upstream CI verification.

AI assistance was used to prepare the change.

@pjljvandelaar

Copy link
Copy Markdown
Collaborator

We are open to pull requests.
We would like to accept your contribution.

However, we require verified signatures.
Could you provide a pull request with verified signatures?

This branch has not been deployed

No deployments
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.

Replacing a PatternMatch raises IndexError when a $$ placeholder is bound to no nodes

2 participants