after updating to PyCharm 2021.2, get Statement expected, found Py:DEDENT

Viewed 231

After updating to PyCharm 2021.2, all of my python code is peppered with errors that say: "Statement expected, found Py:DEDENT". I'm attaching a minimal example of code that produces the error. It's always associated with a line where I go from more to less indented.

Needless to say, this wasn't the case before updating. It occurs for all my projects, so, it's not something project specific.

The minimal example is one I created in a fresh file and I tried adding a new interpreter. I'm not sure what else to try.

Thanks for any advice!

A minimal example

0 Answers
Related