Skip to content

pyclass warning on update pyo3 #53

Description

@LCrossman

Describe the bug
Updated pyo3 to 0.29.0 after receiving alert

warning: use of deprecated associated constant pyo3::impl_::deprecated::HasAutomaticFromPyObject::<true>::MSG: The FromPyObject implementation for #[pyclass] types which implement Clone is changing to an opt-in option. Use #[pyclass(from_py_object)] to opt-in to the FromPyObject derive now, or #[pyclass(skip_from_py_object)] to skip the FromPyObject implementation.
--> src/lib.rs:767:1
|
767 | #[pyclass]
| ^^^^^^^^^^
To Reproduce
Steps to reproduce the behavior:

git clone microBioRust
cd microbiorust-py
maturin develop --release 

or

cargo test

Expected behavior
tests are all passing in pytest and in cargo test but receiving deprecation warning

Desktop (please complete the following information):
Mac OSX

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions