Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Concatenation with empty string is not parsed idempotently #126

@greg-at-moderne

Description

@greg-at-moderne

Steps to reproduce

Using current main (da16633) the following test:

def test_concatenation_with_empty_string():
  # language=python
  rewrite_run(python('print("alef" "")'))

fails with:

Expected :'print("alef" "")'
Actual   :'print("alef" )'

AFAICT this is valid Python code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpython

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions