---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
invalid-syntax: Expected `]`, found `(`
 --> E30_syntax_error.py:4:15
  |
2 | # parenthesis.
3 |
4 | def foo[T1, T2():
  |               ^
5 |     pass
  |

invalid-syntax: Expected `)`, found newline
  --> E30_syntax_error.py:13:18
   |
12 | class Foo:
13 |     def __init__(
   |                  ^
14 |         pass
15 |     def method():
   |

E301 Expected 1 blank line, found 0
  --> E30_syntax_error.py:15:5
   |
13 |     def __init__(
14 |         pass
15 |     def method():
   |     ^^^
16 |         pass
   |
help: Add missing blank line

invalid-syntax: Expected `)`, found newline
  --> E30_syntax_error.py:18:11
   |
16 |         pass
17 |
18 | foo = Foo(
   |           ^
   |

invalid-syntax: Expected `)`, found newline
  --> E30_syntax_error.py:21:9
   |
21 | def top(
   |         ^
22 |     def nested1():
23 |         pass
   |
