添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

superfluous-else-continue (RET507) #

Derived from the flake8-return linter.

Fix is sometimes available.

What it does #

Checks for else statements with a continue statement in the preceding if block.

Why is this bad? #

The else statement is not needed, as the continue statement will always continue onto the next iteration of a loop. Removing the else will reduce nesting and make the code more readable.

Example #