Skip to content

Commit

Permalink
Merge pull request #119 from thedataquarry/compile-error
Browse files Browse the repository at this point in the history
Fix compile error
  • Loading branch information
sanders41 authored Dec 24, 2024
2 parents 0479274 + f19117e commit 40dc852
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pyo3_mock_data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
csv = "1.3.0"
fake = { version = "2.9.2", features = ["derive"] }
pyo3 = { version = "0.21.0", features = ["abi3-py38"] }
pyo3 = { version = "0.23.3", features = ["extension-module"] }
rand = "0.8.5"
serde = { version = "1.0.193", features = ["derive"] }
unicode-normalization = "0.1.22"
5 changes: 1 addition & 4 deletions src/pyo3_mock_data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ fn generate_mock_persons(
#[pymodule]
fn _pyo3_mock_data(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_function(wrap_pyfunction!(generate_mock_persons, m)?)?;
m.add(
"FileNotFoundError",
py.get_type_bound::<FileNotFoundError>(),
)?;
m.add("FileNotFoundError", py.get_type::<FileNotFoundError>())?;

Ok(())
}

0 comments on commit 40dc852

Please sign in to comment.