mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Also field parsing is stricter now and it can't be parsed if parameter name isn't valid Python identifier. As soon as I fixed parsing of Numpy docstring format it caused errors in multiple tests that used types of function parameters, because previously in these places docstrings couldn't have been parsed successfully (they were treated as Epydoc docstrings) and PyNamedParameterImpl#getType delegated to NumpyDocStringTypeProvider. I explicitly prohibited using of NumpyDocString for this purpose before NumpyDocStringTypeProvider is migrated to the newer docstring API.
22 lines
274 B
Python
22 lines
274 B
Python
def func(param1):
|
|
"""
|
|
Parameters
|
|
----------
|
|
x : int
|
|
y : str
|
|
description
|
|
with continuation
|
|
|
|
Example
|
|
-------
|
|
|
|
First sentence.
|
|
Second sentence.
|
|
|
|
Returns
|
|
-------
|
|
Something
|
|
|
|
|
|
"""
|
|
pass |