Skip to content

Python REPL: Error IndentationError: unexpected indent #23499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aeschli opened this issue May 28, 2024 · 1 comment
Closed

Python REPL: Error IndentationError: unexpected indent #23499

aeschli opened this issue May 28, 2024 · 1 comment
Assignees

Comments

@aeschli
Copy link

aeschli commented May 28, 2024

Testing #23484

Python v2024.7.11491011 (pre-release)

  • Have settings
{
    "interactiveWindow.executeWithShiftEnter": false,
    "python.REPL.sendToNativeREPL": true
}
  • Have file test_arithmetic.py
def test_arithmetic_operators():
    """Arithmetic operators"""

    # Addition.
    assert 5 + 3 == 8
  • Select assert 5 + 3 == 8 and press Shift + Enter
  • Python REPL opens and evaluats, but failes with IndentationError: unexpected indent
  • Removing the indent in test_arithmetic.py fixes the issue

Is it expected that I need to fix the ident?

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 28, 2024
@anthonykim1
Copy link

Hi @aeschli Thanks for pointing this out.
I would say it would be fixed once I get #23521 in this iteration!

@anthonykim1 anthonykim1 added area-repl and removed triage-needed Needs assignment to the proper sub-team labels Jun 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants