isort icon indicating copy to clipboard operation
isort copied to clipboard

`sort_reexports` breaks `__all__` symbol

Open jugmac00 opened this issue 3 years ago • 0 comments

repro

  • install isort from current head ( c6a41965247a858a0afd848fbebfca18b8983917 )
  • 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

jugmac00 avatar Jan 22 '22 15:01 jugmac00