File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 40
40
41
41
42
42
- name : Build wheels
43
- uses : pypa/cibuildwheel@v2.12.1
43
+ uses : pypa/cibuildwheel@v2.16.2
44
44
# to supply options, put them in 'env', like:
45
45
env :
46
46
MACOSX_DEPLOYMENT_TARGET : " 10.14"
86
86
with :
87
87
user : __token__
88
88
# To test:
89
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
90
- repository-url : https://test.pypi.org/legacy/
89
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
90
+ # repository-url: https://test.pypi.org/legacy/
91
91
# To release:
92
- # password: ${{ secrets.PYPI_API_TOKEN }}
92
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -45,14 +45,16 @@ void define_interval(py::module_& m)
45
45
.def (
46
46
" __str__" ,
47
47
[](const Interval& self) {
48
- return (std::stringstream () << self).str ();
48
+ std::stringstream ss;
49
+ ss << self;
50
+ return ss.str ();
49
51
})
50
52
.def (
51
53
" __repr__" ,
52
54
[](const Interval& self) {
53
- return ( std::stringstream ()
54
- << " Interval(" << self.INF << " , " << self.SUP << " )" )
55
- .str ();
55
+ std::stringstream ss;
56
+ ss << " Interval(" << self.INF << " , " << self.SUP << " )" ;
57
+ return ss .str ();
56
58
})
57
59
.DEF_BIN_OP (" add" , a + b)
58
60
.DEF_UN_OP (" pos" , +i)
You can’t perform that action at this time.
0 commit comments