@@ -89,8 +89,8 @@ namespace xt
8989
9090 pytensor () = default ;
9191
92- pytensor (pybind11::handle h, borrowed_t );
93- pytensor (pybind11::handle h, stolen_t );
92+ pytensor (pybind11::handle h, pybind11::object:: borrowed_t );
93+ pytensor (pybind11::handle h, pybind11::object:: stolen_t );
9494 pytensor (const pybind11::object &o);
9595
9696 pytensor (const shape_type& shape, const strides_type& strides);
@@ -137,22 +137,22 @@ namespace xt
137137 ***************************/
138138
139139 template <class T , std::size_t N>
140- inline pytensor<T, N>::pytensor(pybind11::handle h, borrowed_t )
141- : base_type(h, borrowed)
140+ inline pytensor<T, N>::pytensor(pybind11::handle h, pybind11::object:: borrowed_t )
141+ : base_type(h, pybind11::object:: borrowed)
142142 {
143143 init_from_python ();
144144 }
145145
146146 template <class T , std::size_t N>
147- inline pytensor<T, N>::pytensor(pybind11::handle h, stolen_t )
148- : base_type(h, stolen)
147+ inline pytensor<T, N>::pytensor(pybind11::handle h, pybind11::object:: stolen_t )
148+ : base_type(h, pybind11::object:: stolen)
149149 {
150150 init_from_python ();
151151 }
152152
153153 template <class T , std::size_t N>
154154 inline pytensor<T, N>::pytensor(const pybind11::object& o)
155- : base_type(base_type::raw_array_t (o.ptr()), stolen)
155+ : base_type(base_type::raw_array_t (o.ptr()), pybind11::object:: stolen)
156156 {
157157 if (!this ->m_ptr )
158158 throw pybind11::error_already_set ();
0 commit comments