X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/cf6f577928f5a1f4e98b02b8e723311cae830305..475179a53af1948ca726de1b11d4cdbe2aa90e58:/tests/comments.py?ds=sidebyside diff --git a/tests/comments.py b/tests/comments.py index 34b38fe..42e42f5 100644 --- a/tests/comments.py +++ b/tests/comments.py @@ -49,6 +49,26 @@ GLOBAL_STATE = {'a': a(1), 'b': a(2), 'c': a(3)} # This time two lines. +class Foo: + """Docstring for class Foo. Example from Sphinx docs.""" + + #: Doc comment for class attribute Foo.bar. + #: It can have multiple lines. + bar = 1 + + flox = 1.5 #: Doc comment for Foo.flox. One line only. + + baz = 2 + """Docstring for class attribute Foo.baz.""" + + def __init__(self): + #: Doc comment for instance attribute qux. + self.qux = 3 + + self.spam = 4 + """Docstring for instance attribute spam.""" + + @fast(really=True) async def wat(): async with X.open_async() as x: # Some more comments