PY-4717 If field contains type only, check that its not plain text using simple heuristic
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 16 Sep 2015 11:18:17 +0000 (14:18 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Thu, 17 Sep 2015 10:01:29 +0000 (13:01 +0300)
commita1a112b9594ec10d914f85986b4da93c75a03796
treeee174081d28fe1420db44a0be5328ae3848f0b53
parent9cc4364a52b28adc027936b89c23b6ae7860d01b
PY-4717 If field contains type only, check that its not plain text using simple heuristic

Otherwise we can't distinguish between type and function description
in cases like the following:

Returns
-------

SomeType, optional
  value description

Continued function description.
python/src/com/jetbrains/python/documentation/docstrings/GoogleCodeStyleDocString.java
python/src/com/jetbrains/python/documentation/docstrings/NumpyDocString.java
python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocString.java
python/testData/docstrings/numpyMultipleReturns.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/PySectionBasedDocStringTest.java