Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Error parsing __all__ when opening parenthesis is on line by itself. #66

Closed
jkrukoff opened this issue Mar 31, 2014 · 0 comments · Fixed by #67
Closed

Error parsing __all__ when opening parenthesis is on line by itself. #66

jkrukoff opened this issue Mar 31, 2014 · 0 comments · Fixed by #67

Comments

@jkrukoff
Copy link
Contributor

With the following test file:

__all__ = (
    'a',
    'b',
    'c',
)


def a():
    pass


def b():
    pass


def c():
    pass

pep257 version 0.3.2 reports that it is unable to evaluate all:

Could not evaluate contents of __all__. That means pep257 cannot decide which definitions are public. Variable __all__ should be present at most once in each file, in form `__all__ = ('a_public_function', 'APublicClass', ...)`. More info on __all__: http://stackoverflow.com/q/44834/. 

If I reformat all to include something on the opening line, pep257 is able to continue:

__all__ = ('a',
    'b',
    'c',
)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant