File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments