Describe the Bug
Google-style python docstrings no longer format the way that they used to.
I used to be able to format function/method docstrings such as:
def myfunc(param1: str, param2: int):
"""
General description.
Args:
param1 (str): Param 1 description on the same line
param2 (int):
Param 2 description is very long, so it takes up multiple lines,
and starts (indented) one line below the param name and type.
"""
When hovering over myfunc
, the tooltip used to show “Args” as a header and “str” and “int” in italics. Hovering over param1
or param2
, it would show their individual description, in full.
Now, the formatting is gone, and param2
would no longer work. I know I could get param2
to work by adding backslashes to the end of each line, but my codebase is quite large and this would be a huge hassle – and it worked before.
Steps to Reproduce
Write the following in your editor:
def myfunc(param1: str, param2: int):
"""
General description.
Args:
param1 (str): Param 1 description on the same line
param2 (int):
Param 2 description is very long, so it takes up multiple lines,
and starts (indented) one line below the param name and type.
"""
Hover over myfunc
, param1
, and param2
, and see that the formatting is missing.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.1.5 (Universal)
VSCode Version: 1.96.2
Commit: ef5eeb47a684b4c217dfaf0463aa7ea952f8ab90
Date: 2025-06-21T05:26:18.966Z (1 wk ago)
Additional Information
I believe there was a recent update (last few weeks) that made Cursor use the anysphere
Python extension based on basedpyright
instead of Pylance
, which is based on pyright
.
Does this stop you from using Cursor
No - Cursor works, but with this issue