anyio has a concept of RunVars which are context variables scoped to a particular AbstractEventLoop instance. These are implemented using a WeakKeyDictionary keyed on the loop instance. Currently this fails since rsloop.Loop doesn't supply the __weakref__ slot.
From what I understand this would be as simple as enabling the weakref option described here https://pyo3.rs/main/class#customizing-the-class
Wouldn't be hard to work around either but until now the other loop implementations have allowed it)
anyio has a concept of
RunVarswhich are context variables scoped to a particularAbstractEventLoopinstance. These are implemented using aWeakKeyDictionarykeyed on the loop instance. Currently this fails sincersloop.Loopdoesn't supply the__weakref__slot.From what I understand this would be as simple as enabling the weakref option described here https://pyo3.rs/main/class#customizing-the-class
Wouldn't be hard to work around either but until now the other loop implementations have allowed it)