pylint-errors

E0603 (undefined-all-variable)

:x: Problematic code:

cat > test.py <<EOF
__all__ = ['Test', 'Bar']


class Test:
    pass


class Foo:
    pass
EOF

:heavy_check_mark: Correct code:

cat > test.py <<EOF
__all__ = ['Test', 'Foo']


class Test:
    pass


class Foo:
    pass
EOF

Rationale:

Used when an undefined variable name is referenced in all.