unnecessary-pass / W0107#

Message emitted:

Unnecessary pass statement

Description:

Used when a "pass" statement that can be avoided is encountered.

Correct code:

class Foo:
    """Foo docstring."""

Problematic code:

class Foo:
    """Foo docstring."""
    pass  # [unnecessary-pass]

Created by the basic checker.