Skip to content

Commit 507087c

Browse files
committed
started fixes to allow compilation with current pyo3 master
1 parent 9d6a6cd commit 507087c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libc = "0.2"
1515
num-complex = "0.2"
1616
num-traits = "0.2"
1717
ndarray = ">=0.13"
18-
pyo3 = "0.11.1"
18+
pyo3 = { git = "https://github.com/PyO3/pyo3" }
1919

2020
[features]
2121
# In default setting, python version is automatically detected

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ macro_rules! impl_pyerr {
7070

7171
impl std::convert::From<$err_type> for PyErr {
7272
fn from(err: $err_type) -> PyErr {
73-
PyErr::from_value::<exc::TypeError>(PyErrValue::from_err_args(err))
73+
PyErr::from_value::<exc::PyTypeError>(PyErrValue::from_err_args(err))
7474
}
7575
}
7676
};

0 commit comments

Comments
 (0)