-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Auto-formatting inside f-strings #179
Comments
@amirstm I am not able to repro this locally. Can you run this from the command line and see if this is actually coming from autopep8? from the logs it looks like it is processing it as expected:
You can get detailed logs by adding the following to your user settings: |
@karthiknadig Thank you for your response. I ran the following command from the command line and it returned the same output.
I should point out that I am using python3.12, and when I tried the same with python3.11 the issue didn't exist. |
@amirstm This is a bug on |
Closing this against the upstream issue hhatto/autopep8#712 |
Hey.
The latest version of the extension has a problem that edits inside python f-strings. For instance:
Line of code before formatting:
connector = f"socks5://{user}:{password}:{url}:{port}"
Line after saving with the formatter enabled:
connector = f"socks5: //{user}: {password}: {url}: {port}"
The text was updated successfully, but these errors were encountered: