Hey, thanks for the report. This is a known limitation with Python code folding in Cursor. The issue affects multiline strings, docstrings, and other constructs. Folding currently works only based on indentation, not language semantics.
This is an upstream limitation in basedpyright (which Cursor’s Python extension is based on). The team is aware and will incorporate improvements when they become available upstream.