forked from pybind/pybind11-stubgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses.pyi
More file actions
79 lines (60 loc) · 1.88 KB
/
classes.pyi
File metadata and controls
79 lines (60 loc) · 1.88 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
from __future__ import annotations
import typing
__all__: list[str] = ["Base", "CppException", "Derived", "Foo", "Outer"]
class Base:
class Inner:
pass
name: str
class CppException(Exception):
pass
class Derived(Base):
count: int
class Foo:
class FooChild:
def __init__(self) -> None: ...
def g(self) -> None: ...
def __init__(self) -> None: ...
def f(self) -> None: ...
class Outer:
class Inner:
class NestedEnum:
"""
Members:
ONE
TWO
"""
ONE: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.ONE: 1>
TWO: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.TWO: 2>
__members__: typing.ClassVar[
dict[str, Outer.Inner.NestedEnum]
] # value = {'ONE': <NestedEnum.ONE: 1>, 'TWO': <NestedEnum.TWO: 2>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self, value: int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self, other: typing.Any) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self, state: int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> str: ...
@property
def value(self) -> int: ...
value: Outer.Inner.NestedEnum
inner: Outer.Inner
class MyBase:
class Inner:
pass
name: str
class Derived(MyBase):
count: int
class Foo:
class FooChild:
def __init__(self) -> None: ...
def g(self) -> None: ...
def __init__(self) -> None: ...
def f(self) -> None: ...
class CppException(Exception):
pass