Petter Strandmark
Petter Strandmark
> do you plan to handle if False / if MYPY? they're also common ways to approach this problem but I don't think if False is universally used and I...
~~Just double-checking: this is a feasible approach then?~~ ~~Asking because adding `during_type_checking` to all `Binding` subclass constructors and handling all other types of bindings will expand the patch a bit.~~...
- Having a separate stack would mean a lot of work keeping track of both stacks when creating scopes and iterating over the stacks. I don't see how this could...
@asottile > added to each of the types as part of their __init__ signature The current version of this PR now does this.
Will continue working on this PR when we have CI up and running. We need the following PRs merged: - https://github.com/PyCQA/pyflakes/pull/532 - https://github.com/PyCQA/pyflakes/pull/531
Updated this PR with the new tests.
@asottile merged to the latest master.
@asottile Should I merge this to master again? Is this likely to be merged?
Thanks for the comments! Now I have to remember what I wrote before! 😄 Will try to update the PR soon.
@asottile made changes based on your review now.