Open djanderson opened 7 years ago
Well spotted, and great test case, thanks for the bug report. I'll try to get to that this weekend.
(unrelated, but both of our avatars are photographs of Autumn leaves)
Any updates with this? Running into the same issue.
It looks like #49 fixed this?
Hi, thanks for the great project.
Currently it seems that importmagic doesn't look for
__annotations__
properties added in recent version of python 3, so python3 syntax-aware checkers complain if I use a type hint without importing the name, but importmagic will delete any import that's only referenced in a type annotation.Test case:
Output: