eric6/QScintilla/DocstringGenerator/SphinxdocGenerator.py

changeset 8000
47b15df088e4
parent 7998
cd41c844862f
child 8005
94a6a1bd5f80
equal deleted inserted replaced
7999:159689297bc0 8000:47b15df088e4
20 the docstring on 20 the docstring on
21 @type FunctionInfo 21 @type FunctionInfo
22 @return list of docstring lines 22 @return list of docstring lines
23 @rtype str 23 @rtype str
24 """ 24 """
25 # __IGNORE_WARNING_D202__
25 lines = [] 26 lines = []
26 27
27 # function description 28 # function description
28 lines.append("DESCRIPTION") 29 lines.append("")
29 30
30 # remove 'self', 'this' or 'cls' from arguments list 31 # remove 'self', 'this' or 'cls' from arguments list
31 if ( 32 if (
32 len(functionInfo.argumentsList) > 0 and 33 len(functionInfo.argumentsList) > 0 and
33 functionInfo.argumentsList[0][0] in ("self", "cls", "this") 34 functionInfo.argumentsList[0][0] in ("self", "cls", "this")

eric ide

mercurial