Skip to content

Commit f5976d1

Browse files
committed
[stubgenc] Replace expected stubs for test project
1 parent 02eccb0 commit f5976d1

File tree

7 files changed

+48
-180
lines changed

7 files changed

+48
-180
lines changed
Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +0,0 @@
1-
from typing import Any
2-
3-
foolist: Any
4-
foovar: Any
5-
list_with_none: Any
6-
none: Any
7-
8-
class Base:
9-
Inner: Any = ...
10-
def __init__(self, *args, **kwargs) -> None: ...
11-
@property
12-
def name(self) -> str: ...
13-
@name.setter
14-
def name(self, val: str) -> None: ...
15-
16-
class CppException(Exception): ...
17-
18-
class Derived(Base):
19-
def __init__(self, *args, **kwargs) -> None: ...
20-
@property
21-
def count(self) -> int: ...
22-
@count.setter
23-
def count(self, val: int) -> None: ...
24-
25-
class Foo:
26-
FooChild: Any = ...
27-
def __init__(self) -> None: ...
28-
def f(self) -> None: ...
29-
30-
class Outer:
31-
Inner: Any = ...
32-
linalg: Any = ...
33-
def __init__(self, *args, **kwargs) -> None: ...
34-
@property
35-
def inner(self) -> python_example.Outer.Inner: ...
36-
@inner.setter
37-
def inner(self, val: python_example.Outer.Inner) -> None: ...
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
from typing import Any
2+
3+
from typing import overload
4+
PI: float
5+
6+
def answer() -> int: ...
7+
def midpoint(left: float, right: float) -> float: ...
8+
def sum(arg0: int, arg1: int) -> int: ...
9+
def weighted_midpoint(left: float, right: float, alpha: float = ...) -> float: ...
10+
11+
class Point:
12+
AngleUnit: Any = ...
13+
LengthUnit: Any = ...
14+
origin: Any = ...
15+
@overload
16+
def __init__(self) -> None: ...
17+
@overload
18+
def __init__(self, x: float, y: float) -> None: ...
19+
@overload
20+
def __init__(*args, **kwargs) -> Any: ...
21+
@overload
22+
def distance_to(self, x: float, y: float) -> float: ...
23+
@overload
24+
def distance_to(self, other: Point) -> float: ...
25+
@overload
26+
def distance_to(*args, **kwargs) -> Any: ...
27+
@property
28+
def angle_unit(self) -> python_example.basics.Point.AngleUnit: ...
29+
@angle_unit.setter
30+
def angle_unit(self, val: python_example.basics.Point.AngleUnit) -> None: ...
31+
@property
32+
def length(self) -> float: ...
33+
@property
34+
def length_unit(self) -> python_example.basics.Point.LengthUnit: ...
35+
@length_unit.setter
36+
def length_unit(self, val: python_example.basics.Point.LengthUnit) -> None: ...
37+
@property
38+
def x(self) -> float: ...
39+
@x.setter
40+
def x(self, val: float) -> None: ...
41+
@property
42+
def x_axis(self) -> python_example.basics.Point: ...
43+
@property
44+
def y(self) -> float: ...
45+
@y.setter
46+
def y(self, val: float) -> None: ...
47+
@property
48+
def y_axis(self) -> python_example.basics.Point: ...

test-data/stubgen/python_example/copy_types.pyi

Lines changed: 0 additions & 4 deletions
This file was deleted.

test-data/stubgen/python_example/invalid_signatures.pyi

Lines changed: 0 additions & 13 deletions
This file was deleted.

test-data/stubgen/python_example/numeric.pyi

Lines changed: 0 additions & 6 deletions
This file was deleted.

test-data/stubgen/python_example/opaque_types.pyi

Lines changed: 0 additions & 69 deletions
This file was deleted.

test-data/stubgen/python_example/sublibA.pyi

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)