---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
E70.py:10:13: E703 [*] Statement ends with an unnecessary semicolon
   |
 8 | import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe)
 9 | #: E703:1:13
10 | import shlex;
   |             ^ E703
11 | #: E702:1:9 E703:1:23
12 | del a[:]; a.append(42);
   |
   = help: Remove unnecessary semicolon

ℹ Safe fix
7  7  | #: E702:1:17
8  8  | import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe)
9  9  | #: E703:1:13
10    |-import shlex;
   10 |+import shlex
11 11 | #: E702:1:9 E703:1:23
12 12 | del a[:]; a.append(42);
13 13 | #: E704:1:1

E70.py:12:23: E703 [*] Statement ends with an unnecessary semicolon
   |
10 | import shlex;
11 | #: E702:1:9 E703:1:23
12 | del a[:]; a.append(42);
   |                       ^ E703
13 | #: E704:1:1
14 | def f(x): return 2
   |
   = help: Remove unnecessary semicolon

ℹ Safe fix
9  9  | #: E703:1:13
10 10 | import shlex;
11 11 | #: E702:1:9 E703:1:23
12    |-del a[:]; a.append(42);
   12 |+del a[:]; a.append(42)
13 13 | #: E704:1:1
14 14 | def f(x): return 2
15 15 | #: E704:1:1

E70.py:25:14: E703 [*] Statement ends with an unnecessary semicolon
   |
23 |     def f(x): return 2*x
24 | #: E704:1:8 E702:1:11 E703:1:14
25 | if True: x; y;
   |              ^ E703
26 | #: E701:1:8
27 | if True: lambda a: b
   |
   = help: Remove unnecessary semicolon

ℹ Safe fix
22 22 | while all is round:
23 23 |     def f(x): return 2*x
24 24 | #: E704:1:8 E702:1:11 E703:1:14
25    |-if True: x; y;
   25 |+if True: x; y
26 26 | #: E701:1:8
27 27 | if True: lambda a: b
28 28 | #: E701:1:10

E70.py:68:1: E703 [*] Statement ends with an unnecessary semicolon
   |
66 | #: E703:2:1
67 | 0\
68 | ;
   | ^ E703
69 | #: E701:2:3
70 | a = \
   |
   = help: Remove unnecessary semicolon

ℹ Safe fix
64 64 | while 1:
65 65 |   1;...
66 66 | #: E703:2:1
67    |-0\
68    |-;
   67 |+0
69 68 | #: E701:2:3
70 69 | a = \
71 70 |   5;

E70.py:71:4: E703 [*] Statement ends with an unnecessary semicolon
   |
69 | #: E701:2:3
70 | a = \
71 |   5;
   |    ^ E703
72 | #:
73 | with x(y) as z: ...
   |
   = help: Remove unnecessary semicolon

ℹ Safe fix
68 68 | ;
69 69 | #: E701:2:3
70 70 | a = \
71    |-  5;
   71 |+  5
72 72 | #:
73 73 | with x(y) as z: ...


