Skip to content

Preserve template arguments that contain unhashable literals - #704

Open
codewithfourtix wants to merge 1 commit into
google:masterfrom
codewithfourtix:fix-unhashable-template-arguments
Open

codewithfourtix wants to merge 1 commit into
google:masterfrom
codewithfourtix:fix-unhashable-template-arguments

Conversation

@codewithfourtix

Copy link
Copy Markdown

Fixes #703. Values such as {{name}} currently crash argument parsing with TypeError: unhashable type: 'set'. Fall back to the original string when literal evaluation encounters unhashable containers, matching the existing handling of invalid literals.

Adds four failing-input cases and checks that valid sets and dictionary keys still parse. Validation: all 22 parser tests pass through an isolated source harness using standard unittest assertions; the four new failure cases raise on the original source. Full CLI suite not run.

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.

Brace-based template arguments crash literal parsing with TypeError

1 participant