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

Method cast

include/pybind11/cast.h:366–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364 return false;
365 }
366 static handle cast(T, return_value_policy /* policy */, handle /* parent */) {
367 return none().release();
368 }
369 PYBIND11_TYPE_CASTER(T, const_name("None"));
370};
371

Callers

nothing calls this directly

Calls 2

noneClass · 0.85
releaseMethod · 0.80

Tested by

no test coverage detected