You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This #4643 PR introduced the #[pyo3(default)] attribute macro. Unfortunately, it doesn't work when both FromPyObject and IntoPyObject are derived for the same object.
@Icxolu sorry I missed that one! I did a search for default and didn't find anything. Feel free to close this if this is just a subset of the problem captured in #4884
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
This #4643 PR introduced the
#[pyo3(default)]
attribute macro. Unfortunately, it doesn't work when both FromPyObject and IntoPyObject are derived for the same object.Steps to Reproduce
Compiles fine:
This does not:
Backtrace
Your operating system and version
Ubuntu 22
Your Python version (
python --version
)Python 3.10.12
Your Rust version (
rustc --version
)rustc 1.85.0 (4d91de4e4 2025-02-17)
Your PyO3 version
0.24.0
How did you install python? Did you use a virtualenv?
venv
Additional Info
No response
The text was updated successfully, but these errors were encountered: