-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support complex __all__ assignments #40
Comments
Looks like it's pretty easy with The inference of the The test case: https://github.com/tristanlatr/pydocspec/blob/main/pydocspec/test/test_astbuilder.py#L435-L470 It does not understand |
Is your feature request related to a problem? Please describe.
We claim to support
__all__
variables for explicit exports. But we only do when it is assigned using a list/tuple and literal strings, not when summing lists and/or adding items later, and/orDescribe the solution you'd like
Support more complex assignments. Starred list elements and additions at least (
+
and+=
).Describe alternatives you've considered
Stop reyling on
__all__
and always resolve implicitly.Additional context
Example: https://github.com/django/django/blob/main/django/db/models/__init__.py
The text was updated successfully, but these errors were encountered: