We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running isort over the following file:
from math import sqrt if __name__ == "__main__": thing = sqrt(3) # some random comments from datetime import datetime dt = datetime(2020,1,1)
Leads to the comment being converted to code
from math import sqrt if __name__ == "__main__": thing = sqrt(3) some random comments from datetime import datetime dt = datetime(2020,1,1)
will be the output. The isort version is 5.10.1. I have not checked all isort versions.
The text was updated successfully, but these errors were encountered:
I minimized the original example a bit:
import sys if True: # comment import sys
I used this script with git bisect, which pointed to 67b2a54, which is now:
git bisect
isort/isort/core.py
Lines 415 to 418 in 12cc5fb
Sorry, something went wrong.
This is similar to #2087.
I'm trying to come up with a solution for this, I added comments on why this is happening and the difficulties I'm facing while resolving them.
anirudnits
No branches or pull requests
running isort over the following file:
Leads to the comment being converted to code
will be the output. The isort version is 5.10.1. I have not checked all isort versions.
The text was updated successfully, but these errors were encountered: