MCPcopy Create free account
hub / github.com/apify/impit / __aenter__

Method __aenter__

impit-python/src/async_client.rs:26–31  ·  view source on GitHub ↗
(
        slf: Py<Self>,
        py: Python<'_>,
    )

Source from the content-addressed store, hash-verified

24#[pymethods]
25impl AsyncClient {
26 pub fn __aenter__(
27 slf: Py<Self>,
28 py: Python<'_>,
29 ) -> Result<pyo3::Bound<'_, pyo3::PyAny>, pyo3::PyErr> {
30 pyo3_async_runtimes::tokio::future_into_py::<_, Py<AsyncClient>>(py, async { Ok(slf) })
31 }
32
33 pub fn __aexit__<'python>(
34 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected