File tree 3 files changed +10
-2
lines changed
test-data/pybind11_mypy_demo
stubgen/pybind11_mypy_demo 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
cd " $( dirname $0 ) /.."
4
6
5
7
# Install dependencies, demo project and mypy
6
8
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
8
10
python -m pip install .
9
11
10
12
# Remove expected stubs and generate new inplace
Original file line number Diff line number Diff line change 2
2
requires = [
3
3
" setuptools>=42" ,
4
4
" 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" ,
6
8
]
7
9
8
10
build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ class Point:
18
18
def __setstate__ (self , state : int ) -> None : ...
19
19
@property
20
20
def name (self ) -> str : ...
21
+ @property
22
+ def value (self ) -> int : ...
21
23
22
24
class LengthUnit :
23
25
__entries : ClassVar [dict ] = ...
@@ -34,6 +36,8 @@ class Point:
34
36
def __setstate__ (self , state : int ) -> None : ...
35
37
@property
36
38
def name (self ) -> str : ...
39
+ @property
40
+ def value (self ) -> int : ...
37
41
angle_unit : ClassVar [Point .AngleUnit ] = ...
38
42
length_unit : ClassVar [Point .LengthUnit ] = ...
39
43
x_axis : ClassVar [Point ] = ... # read-only
You can’t perform that action at this time.
0 commit comments