---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
snapshot_kind: text
---
E27.py:38:8: E275 [*] Missing whitespace after keyword
   |
36 | from w import  (e, f)
37 | #: E275
38 | from w import(e, f)
   |        ^^^^^^ E275
39 | #: E275
40 | from importable.module import(e, f)
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
35 35 | #: E271
36 36 | from w import  (e, f)
37 37 | #: E275
38    |-from w import(e, f)
   38 |+from w import (e, f)
39 39 | #: E275
40 40 | from importable.module import(e, f)
41 41 | #: E275

E27.py:40:24: E275 [*] Missing whitespace after keyword
   |
38 | from w import(e, f)
39 | #: E275
40 | from importable.module import(e, f)
   |                        ^^^^^^ E275
41 | #: E275
42 | try:
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
37 37 | #: E275
38 38 | from w import(e, f)
39 39 | #: E275
40    |-from importable.module import(e, f)
   40 |+from importable.module import (e, f)
41 41 | #: E275
42 42 | try:
43 43 |     from importable.module import(e, f)

E27.py:43:28: E275 [*] Missing whitespace after keyword
   |
41 | #: E275
42 | try:
43 |     from importable.module import(e, f)
   |                            ^^^^^^ E275
44 | except ImportError:
45 |     pass
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
40 40 | from importable.module import(e, f)
41 41 | #: E275
42 42 | try:
43    |-    from importable.module import(e, f)
   43 |+    from importable.module import (e, f)
44 44 | except ImportError:
45 45 |     pass
46 46 | #: E275

E27.py:47:1: E275 [*] Missing whitespace after keyword
   |
45 |     pass
46 | #: E275
47 | if(foo):
   | ^^ E275
48 |     pass
49 | else:
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
44 44 | except ImportError:
45 45 |     pass
46 46 | #: E275
47    |-if(foo):
   47 |+if (foo):
48 48 |     pass
49 49 | else:
50 50 |     pass

E27.py:55:5: E275 [*] Missing whitespace after keyword
   |
53 | #: E275:2:11
54 | if True:
55 |     assert(1)
   |     ^^^^^^ E275
56 | #: Okay
57 | def f():
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
52 52 | matched = {"true": True, "false": False}
53 53 | #: E275:2:11
54 54 | if True:
55    |-    assert(1)
   55 |+    assert (1)
56 56 | #: Okay
57 57 | def f():
58 58 |     print((yield))

E27.py:77:1: E275 [*] Missing whitespace after keyword
   |
76 | #: E275
77 | match(foo):
   | ^^^^^ E275
78 |     case(1):
79 |         pass
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
74 74 | type	Number = int
75 75 | 
76 76 | #: E275
77    |-match(foo):
   77 |+match (foo):
78 78 |     case(1):
79 79 |         pass
80 80 | 

E27.py:78:5: E275 [*] Missing whitespace after keyword
   |
76 | #: E275
77 | match(foo):
78 |     case(1):
   |     ^^^^ E275
79 |         pass
   |
   = help: Added missing whitespace after keyword

ℹ Safe fix
75 75 | 
76 76 | #: E275
77 77 | match(foo):
78    |-    case(1):
   78 |+    case (1):
79 79 |         pass
80 80 | 
81 81 | # https://github.com/astral-sh/ruff/issues/12094
