mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
PY-33341: Now we render the “Attributes” section in the class documentation, it also allows to describe inherited attributes. (Previously we didn’t render it at all) PY-56416: In the attribute documentation popup we are able to render attribute description from class docstring. (Previously we took documentation only explicitly from attribute one-line docstring) PY-33341: We render the “Parameters” section in the class documentation for init parameters, described in the class docstring. (Previously user couldn't use class docstring to describe init parameters) PY-28900: For the init parameter documentation we take the description from the class docstring if init doesn't have its own docstring. (Previously we took parameter description only from init docstring) GitOrigin-RevId: d67bf49c72cf7a3634805a6e310c943f1ea848d1
15 lines
212 B
Python
15 lines
212 B
Python
class My<the_ref>Class:
|
|
"""
|
|
Class doc
|
|
|
|
Attributes:
|
|
a1: attr1 doc
|
|
a2: attr2 doc
|
|
"""
|
|
|
|
a1 = 0
|
|
a2 = 0
|
|
|
|
def __init__(self, a1, a2):
|
|
self.a1 = a1
|
|
self.a2 = a2 |