Closed vigilyn closed 1 year ago
This will be addressed by the new engine.
In general, inline comments also seem to be removed. For example:
var1 = "World!"
var2 = "Hello {}".format(var1) # a comment
becomes:
var1 = "World!"
var2 = f"Hello {var1}"
EDIT: I just saw that comments are mentioned in the FAQ
Description
Sourcery should not remove comments.
Original code
Sourcery Suggested refactoring (use-named-expression)
Actual Desired refactoring (use-named-expression)
Debug Information
IDE Version: PyCharm 2022.2.1 (Professional Edition) Build #PY-222.3739.56, built on August 16, 2022 Runtime version: 17.0.3+7-b469.37 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Sourcery Version: sourcery.pycharm-plugin (0.12.8)
Operating system and Version: macOS 12.6