-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathproperties.pyi
More file actions
109 lines (99 loc) · 2.81 KB
/
properties.pyi
File metadata and controls
109 lines (99 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from __future__ import annotations
import typing
__all__: list[str] = [
"WithGetterSetterDoc",
"WithPropAndGetterSetterDoc",
"WithPropDoc",
"WithoutDoc",
]
class WithoutDoc:
"""
No user docstring provided
"""
def_property_readonly_static: typing.ClassVar[int] = 0
def_property_static: typing.ClassVar[int] = 0
@property
def def_property(self) -> int: ...
@def_property.setter
def def_property(self, arg1: typing.SupportsInt | typing.SupportsIndex) -> None: ...
@property
def def_property_readonly(self) -> int: ...
@property
def def_readonly(self) -> int: ...
@property
def def_readwrite(self) -> int: ...
@def_readwrite.setter
def def_readwrite(
self, arg0: typing.SupportsInt | typing.SupportsIndex
) -> None: ...
class WithPropDoc:
"""
User docstring provided only to `def_` calls
"""
def_property_readonly_static: typing.ClassVar[int] = 0
def_property_static: typing.ClassVar[int] = 0
@property
def def_property(self) -> int:
"""
prop doc token
"""
@def_property.setter
def def_property(self, arg1: typing.SupportsInt | typing.SupportsIndex) -> None: ...
@property
def def_property_readonly(self) -> int:
"""
prop doc token
"""
@property
def def_readonly(self) -> int:
"""
prop doc token
"""
@property
def def_readwrite(self) -> int:
"""
prop doc token
"""
@def_readwrite.setter
def def_readwrite(
self, arg0: typing.SupportsInt | typing.SupportsIndex
) -> None: ...
class WithGetterSetterDoc:
"""
User docstring provided via pybind11::cpp_function(..., doc) to getters/setters, but NOT to `def_*(..., doc)` calls
"""
def_property_readonly_static: typing.ClassVar[int] = 0
def_property_static: typing.ClassVar[int] = 0
@property
def def_property(self) -> int:
"""
getter doc token
"""
@def_property.setter
def def_property(self, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
setter doc token
"""
@property
def def_property_readonly(self) -> int:
"""
getter doc token
"""
class WithPropAndGetterSetterDoc:
"""
User docstring provided via pybind11::cpp_function(..., doc) to getters/setters and to `def_*(, doc)` calls
"""
def_property_readonly_static: typing.ClassVar[int] = 0
def_property_static: typing.ClassVar[int] = 0
@property
def def_property(self) -> int:
"""
prop doc token
"""
@def_property.setter
def def_property(self, arg1: typing.SupportsInt | typing.SupportsIndex) -> None: ...
@property
def def_property_readonly(self) -> int:
"""
prop doc token
"""