Skip to content

Commit e681915

Browse files
Keller Fabian Rudolf (CC-AD/EYC3)Keller Fabian Rudolf (CC-AD/EYC3)
Keller Fabian Rudolf (CC-AD/EYC3)
authored and
Keller Fabian Rudolf (CC-AD/EYC3)
committed
update reference stubgen output
1 parent 0f22b25 commit e681915

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

misc/test-stubgenc.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
22

3+
set -e
4+
35
cd "$(dirname $0)/.."
46

57
# Install dependencies, demo project and mypy
68
python -m pip install -r test-requirements.txt
7-
python -m pip install test-data/pybind11_mypy_demo
9+
python -m pip install ./test-data/pybind11_mypy_demo
810
python -m pip install .
911

1012
# Remove expected stubs and generate new inplace

test-data/pybind11_mypy_demo/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
requires = [
33
"setuptools>=42",
44
"wheel",
5-
"pybind11>=2.6.0",
5+
# Officially supported pybind11 version. This is pinned to guarantee 100% reproducible CI.
6+
# As a results, needs to be updated deliberately at will.
7+
"pybind11==2.9.2",
68
]
79

810
build-backend = "setuptools.build_meta"

test-data/pybind11_mypy_demo/stubgen/pybind11_mypy_demo/basics.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class Point:
1818
def __setstate__(self, state: int) -> None: ...
1919
@property
2020
def name(self) -> str: ...
21+
@property
22+
def value(self) -> int: ...
2123

2224
class LengthUnit:
2325
__entries: ClassVar[dict] = ...
@@ -34,6 +36,8 @@ class Point:
3436
def __setstate__(self, state: int) -> None: ...
3537
@property
3638
def name(self) -> str: ...
39+
@property
40+
def value(self) -> int: ...
3741
angle_unit: ClassVar[Point.AngleUnit] = ...
3842
length_unit: ClassVar[Point.LengthUnit] = ...
3943
x_axis: ClassVar[Point] = ... # read-only

0 commit comments

Comments
 (0)