Closed decorator-factory closed 2 years ago
Why do you want to use use __all__, = ...
?
I definitely don't want to use it :) I found this when running flake8 on some piece of code which had this, as a typo perhaps But I don't think pyflakes should crash on this
Steps to reproduce:
pyflakes==2.4.0
foo.py
__all__
is intentional):pyflakes foo.py
Outcome:
After a bit of investigation, this method assumes that
source
is aast.Name
. But in reality it can beast.Tuple
or some other more complicated target.I think the right behaviour is to mark this as invalid to the user.
I'd be happy to work on this issue myself.