Skip to content

Commit 26e76d0

Browse files
committed
tests: add example_class module
1 parent c7c2348 commit 26e76d0

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

quartodoc/tests/example_class.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
class C:
2+
"""The short summary.
3+
4+
The extended summary,
5+
which may be multiple lines.
6+
7+
Parameters
8+
----------
9+
x:
10+
Uses signature type.
11+
y: int
12+
Uses manual type.
13+
14+
"""
15+
16+
SOME_ATTRIBUTE: float
17+
"""An attribute"""
18+
19+
def __init__(self, x: str, y: int):
20+
self.x = x
21+
self.y = y
22+
self.z: int = 1
23+
24+
def some_method(self):
25+
"""A method"""
26+
27+
@property
28+
def some_property(self):
29+
"""A property"""
30+
31+
32+
class AttributesTable:
33+
"""The short summary.
34+
35+
Attributes
36+
----------
37+
x:
38+
Uses signature type
39+
y: int
40+
Uses manual type
41+
z:
42+
Defined in init
43+
"""
44+
45+
x: str
46+
y: int
47+
"""This docstring should not be used"""
48+
49+
def __init__(self):
50+
self.z: float = 1

0 commit comments

Comments
 (0)