Closed jakkdl closed 4 months ago
If you want support for
from contextlib import suppress
without having to specifysuppress
in the flag, it should be pretty doable to track the import like with other utility visitors.
If this is reasonable, it'd definitely be nice to have.
from contextlib import suppress as xxx
ended up handling more cases than I initially planned to, but once I had the core implementation it was easy to add onto it and would've had to fight with type-checking/raise error messages/etc for some of the cases otherwise.
Pretty straightforward. I wouldn't be totally shocked if this breaks something else in ASYNC91x, but I've spent a while trying to figure out edge cases and come up empty.
If you want support for
from contextlib import suppress
without having to specifysuppress
in the flag, it should be pretty doable to track the import like with other utility visitors.