| 2299 | }; |
| 2300 | |
| 2301 | class function : public object { |
| 2302 | public: |
| 2303 | PYBIND11_OBJECT_DEFAULT(function, object, PyCallable_Check) |
| 2304 | handle cpp_function() const { |
| 2305 | handle fun = detail::get_function(m_ptr); |
| 2306 | if (fun && PyCFunction_Check(fun.ptr())) { |
| 2307 | return fun; |
| 2308 | } |
| 2309 | return handle(); |
| 2310 | } |
| 2311 | bool is_cpp_function() const { return (bool) cpp_function(); } |
| 2312 | }; |
| 2313 | |
| 2314 | class staticmethod : public object { |
| 2315 | public: |
no outgoing calls
no test coverage detected