pylint-errors

E0604 (invalid-all-object)

:x: Problematic code:

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


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 invalid (non-string) object occurs in __all__.