Skip to content

Commit ad6898e

Browse files
authored
Fix pylint and flake8 warnings.
* Mark TabError as noqa to silence linters on Python 3 * Disable mixed_indentation warning for pylint
2 parents 6abfb50 + 68c675b commit ad6898e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mixed_tabs_and_spaces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def square(x):
22
sum_so_far = 0
3-
for counter in range(x):
4-
sum_so_far = sum_so_far + x
5-
return sum_so_far
3+
for _ in range(x):
4+
sum_so_far += x
5+
return sum_so_far # noqa: E999 # pylint: disable=mixed-indentation Python 3 will raise a TabError here
66

77
print(square(10))

0 commit comments

Comments
 (0)