pyo3/src/coroutine
Lily Foote 0dd568d397
Use the new bound API instead of .as_ref(py) (#3853)
* Use the new bound API instead of .as_ref(py)

* Move import into a nested scope

* Use to_cow instead of to_str for compatibility

`to_str` is not available before Python 3.10 on the limited api.

* Relax &self lifetimes

* Use Bound<'py, PyAny> in test Mapping signatures

* Use .as_bytes(py)

* Simplify ThrowCallback::throw signature

* Avoid .as_any call with Py api instead of Bound
2024-02-18 00:09:56 +00:00
..
cancel.rs Use the new bound API instead of .as_ref(py) (#3853) 2024-02-18 00:09:56 +00:00
waker.rs Use the new bound API instead of .as_ref(py) (#3853) 2024-02-18 00:09:56 +00:00