Format if statements (#4961)

This commit is contained in:
Micha Reiser 2023-06-09 10:55:14 +02:00 committed by GitHub
parent 548a3cbb3f
commit 1accbeffd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 882 additions and 357 deletions

View file

@ -0,0 +1,37 @@
if x == y: # trailing if condition
pass # trailing `pass` comment
# Root `if` trailing comment
# Leading elif comment
elif x < y: # trailing elif condition
pass
# `elif` trailing comment
# Leading else comment
else: # trailing else condition
pass
# `else` trailing comment
if x == y:
if y == z:
...
if a == b:
...
else: # trailing comment
...
# trailing else comment
# leading else if comment
elif aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + [
11111111111111111111111111,
2222222222222222222222,
3333333333
]:
...
else:
...