Skip to content
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

sort_reexports breaks __all__ symbol #1887

Closed
jugmac00 opened this issue Jan 22, 2022 · 0 comments · Fixed by #2065
Closed

sort_reexports breaks __all__ symbol #1887

jugmac00 opened this issue Jan 22, 2022 · 0 comments · Fixed by #2065

Comments

@jugmac00
Copy link
Contributor

repro

  • install isort from current head ( c6a4196 )
  • create test.py with one line __all__ = ["b", "c", "a"]
  • create either config file with sort_reexports = true and run isort test.py or run isort --sort_reexports test.py

The above line in test.py will be changed into...

___all__ = ["a", "b", "c"]

Please note the third underline character at the beginning of the symbol.

Python 3.8.10 on Ubuntu 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant