Skip to content

Commit 8499cee

Browse files
authored
Merge pull request #965 from certik/declare_same_line
Declare variables on the same line
2 parents a4443dc + b68a8c7 commit 8499cee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

integration_tests/loop_01.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
def main0():
2-
s: str
3-
s = 'aabbcc'
4-
c: str
2+
s: str = 'aabbcc'; c: str
53
for c in s:
64
print(c)
75

86
def test_issue_770():
9-
i: i64
10-
res: i64
11-
res = 0
7+
i: i64; res: i64 = 0
128
for i in range(10):
139
res += i
1410
assert res == 45

0 commit comments

Comments
 (0)