MCPcopy Create free account
hub / github.com/pybind/pybind11 / kwargs

Function kwargs

include/pybind11/cast.h:2280–2289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2278 }
2279
2280 dict kwargs() const {
2281 dict val;
2282 if (m_names) {
2283 size_t offset = m_args.size() - m_names.size();
2284 for (size_t i = 0; i < m_names.size(); ++i, ++offset) {
2285 val[m_names[i]] = reinterpret_borrow<object>(m_args[offset]);
2286 }
2287 }
2288 return val;
2289 }
2290
2291private:
2292 // normal argument, possibly needing conversion

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected