Skip to content

Commit

Permalink
Switch back to PyO3 0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Apr 25, 2024
1 parent 3074404 commit a228c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/accelerate/src/nlayout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ impl NLayout {

fn __reduce__(&self, py: Python) -> PyResult<Py<PyAny>> {
Ok((
py.get_type_bound::<Self>()
.getattr("from_virtual_to_physical")?,
py.get_type::<Self>().getattr("from_virtual_to_physical")?,
(self.virt_to_phys.to_object(py),),
)
.into_py(py))
Expand Down

0 comments on commit a228c98

Please sign in to comment.