Skip to content

Commit

Permalink
Fix compiler error due to using weakref in our own code
Browse files Browse the repository at this point in the history
  • Loading branch information
codeguru42 committed May 26, 2024
1 parent ba169da commit bc9a80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/hygiene/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pub struct Foo;
#[pyo3(crate = "crate")]
pub struct Foo2;

#[cfg_attr(any(Py_3_9, not(Py_LIMITED_API)), pyo3(weakref))]
#[crate::pyclass(
name = "ActuallyBar",
freelist = 8,
weakref,
unsendable,
subclass,
extends = crate::types::PyAny,
Expand Down

0 comments on commit bc9a80e

Please sign in to comment.