Files
openide/python/testData/editing/enterNoDocstringStubWhenCodeExampleInDocstring.after.py
Mikhail Golubev 40733b0fd4 PY-17183 Heuristically determine when incomplete docstring captures another declaration
To do so I search for the line inside a docstring that starts with
either "def " or "class " and has indentation less than that of opening
docstring quotes.
2015-10-25 15:49:43 +03:00

16 lines
192 B
Python

def f():
"""
Monospaced ``func`` and func
Example:
::
def func():
pass
class Class():
pass
"""