-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
gh-111201: auto-indentation in _pyrepl #119348
Conversation
Hi @ambv , I see the commit authorship changed for the first commit 😬 |
We squash all commits so this isn't important. As you can see in cd516cd the merged commit is attributed to you. |
Thanks for your contribution, Arnon! |
Sorry, @wiggin15 and @ambv, I could not cleanly backport this to
|
(cherry picked from commit cd516cd) Co-authored-by: Arnon Yaari <wiggin15@yahoo.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit cd516cd) Co-authored-by: Arnon Yaari <wiggin15@yahoo.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
GH-119427 is a backport of this pull request to the 3.13 branch. |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Auto-indent blocks in new _pyrepl when the user presses after a line that should start a new block. By default, indent by 4 spaces, but keep the user indentation if the user changes it.
Ideas for future improvement (not included in this PR):
if foo: # bar
(currently it will not auto-indent after this line)