MCPcopy Index your code
hub / github.com/RustPython/RustPython / keys

Method keys

crates/stdlib/src/contextvars.rs:218–221  ·  view source on GitHub ↗
(zelf: &Py<Self>)

Source from the content-addressed store, hash-verified

216 // TODO: wrong return type
217 #[pymethod]
218 fn keys(zelf: &Py<Self>) -> Vec<PyObjectRef> {
219 let vars = zelf.borrow_vars();
220 vars.keys().map(|key| key.to_owned().into()).collect()
221 }
222
223 // TODO: wrong return type
224 #[pymethod]

Callers 1

iterMethod · 0.45

Calls 4

borrow_varsMethod · 0.80
collectMethod · 0.80
mapMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected