You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Jasha10 thanks as always for opening the issue. I was able to reproduce the bug, although I think the solution should be done in the upstream library we use to detect import errors. We blindly trust autoflake to detect import errors, and they are giving a false positive with your code when they shouldn't. If it's critical for you, I'm happy to accept a PR to prevent this issue until it's fixed in autoflake. Although maybe it's easier to use the next snippet that works as expected:
I was going to suggest that you showed them the output of autoflake -c script.py but it looks like it's not a good idea, unless you want to open another issue xD
I was going to suggest that you showed them the output of autoflake -c script.py but it looks like it's not a good idea, unless you want to open another issue xD
Haha! Yes, that's strange indeed :)
Both autoflake -c script.py and even autoflake script.py seem to be no-ops.
Hello,
Unfortunately I have a bug to report. I'm getting a false-positive import with certain
typing.Literal
usage.before running autoimport:
after running autoimport:
Importing the library
time
is not correct.Context:
This bug came up when using the
nptyping
library, which encourages liberal use ofLiteral
.Environment:
The text was updated successfully, but these errors were encountered: