Inspectopedia Help

Prohibited trailing semicolon in a statement

Reports trailing semicolons in statements.


def my_func(a): c = a ** 2; return c

IDE provides a quick-fix that removes a trailing semicolon. When you apply it, the code changes to:

def my_func(a): c = a ** 2 return c

Inspection Details

Available in:

DataSpell 2023.3, PyCharm 2023.3


Python Community Edition, 233.SNAPSHOT

Last modified: 13 July 2023