diff options
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/annotations.py')
-rw-r--r-- | tests/roots/test-ext-autodoc/target/annotations.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/roots/test-ext-autodoc/target/annotations.py b/tests/roots/test-ext-autodoc/target/annotations.py index 691176b08..e9ff2f604 100644 --- a/tests/roots/test-ext-autodoc/target/annotations.py +++ b/tests/roots/test-ext-autodoc/target/annotations.py @@ -4,6 +4,9 @@ from typing import overload myint = int +#: docstring +variable: myint + def sum(x: myint, y: myint) -> myint: """docstring""" @@ -23,3 +26,10 @@ def mult(x: float, y: float) -> float: def mult(x, y): """docstring""" return x, y + + +class Foo: + """docstring""" + + #: docstring + attr: myint |