Skip to content

REPL auto-indentation is wrong with comments #122237

Closed
@HarryLHW

Description

@HarryLHW

Bug report

Bug description:

Currently, the REPL auto indentation is like this:
image

The correct one should be:
image

I am working on a PR to fix this.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions