Spyder IDE - E275 missing whitespace after keyword (pycodestyles e275) - break, continue

370 views Asked by At

While using Spyder, I'm getting pscodestyles errors for missing whitespace after keyword. This is happening any time I use continue, break, return, etc. If I do add a white space after this, then I get W291 trailing whitespace. What is the proper way to fix this? I would like to avoid just disabling E275.

by popular demand, here is the example code:

for i in range(4):
  if i == 1:
    continue
  if i == 2:
    break

Python Version: 3.9.13, Spyder Version: 5.4.0, I haven't tried other versions.

0

There are 0 answers