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
Python version (and distribution if applicable, e.g. Anaconda): Python3.12.0, .venv
python.analysis.indexing: true
python.analysis.typeCheckingMode: basic
Code Snippet
on file1.py:
defmake_dot_string(x):
""" creates a string of spaces followed by a dot. @param x: the number of spaces before the dot. @return: a string with x spaces, then a dot. """rad=radians(x)
c=abs(round(cos(rad), 2))
ifc==0:
return0numspaces=int((9*1/c-9))
returnnumspaces
are you saying you copied things correctly but something interfered and messed up indentation? or you copied things incorrectly, so format was messed up? but you want us to fix that up?
so, you are saying the extra whitespace before """ below def home is added by something (pylance or something else) even if user didn't put that whitespace when they make the copy nor when they paste. something else automatically added that whitespace
asking since based on the answer, we need to look for different thing. if it is automatically added, we need to inspect things like auto formatter or other extensions who might have added that extra whitespace.
if user added that whitespace when copy or pasted the code after that whitespace accidently or not, then it is by design and we would need to look for enhancement. either we implement formatter ourselves, or talk with vscode whether they can add auto format on paste like they do auto format on save.
Environment data
Code Snippet
on file1.py:
On file2.py:
Repro Steps
Logs
pylance051524.txt
Maybe it's something enabling format on paste would solve?
The text was updated successfully, but these errors were encountered: