Searched refs:has_kwargs (Results 1 – 6 of 6) sorted by relevance
152 self.assertTrue(function_utils.has_kwargs(fn_has_kwargs))155 self.assertFalse(function_utils.has_kwargs(fn_has_no_kwargs))163 self.assertTrue(function_utils.has_kwargs(FooHasKwargs()))169 self.assertFalse(function_utils.has_kwargs(FooHasNoKwargs()))177 self.assertTrue(function_utils.has_kwargs(FooHasKwargs().fn))183 self.assertFalse(function_utils.has_kwargs(FooHasNoKwargs().fn))194 self.assertTrue(function_utils.has_kwargs(wrapped_fn))204 self.assertFalse(function_utils.has_kwargs(wrapped_fn))220 self.assertTrue(function_utils.has_kwargs(double_wrapped_fn))232 self.assertFalse(function_utils.has_kwargs(double_wrapped_fn))[all …]
66 def has_kwargs(fn): function
145 has_kwargs(false), has_kw_only_args(false), prepend(false) { }190 bool has_kwargs : 1;546 constexpr bool expected_num_args(size_t nargs, bool has_args, bool has_kwargs) {547 return named == 0 || (self + named + size_t(has_args) + size_t(has_kwargs)) == nargs;
166 …static_assert(expected_num_args<Extra...>(sizeof...(Args), cast_in::has_args, cast_in::has_kwargs), in PYBIND11_NAMESPACE_BEGIN()223 if (cast_in::has_kwargs) rec->has_kwargs = true; in PYBIND11_NAMESPACE_BEGIN()606 if (func.has_kwargs) --num_args; // or py::kwargs) in PYBIND11_NAMESPACE_BEGIN()715 if (kwargs && !kwargs.empty() && !func.has_kwargs) in PYBIND11_NAMESPACE_BEGIN()740 if (func.has_kwargs) { in PYBIND11_NAMESPACE_BEGIN()
2003 static constexpr bool has_kwargs = kwargs_pos < 0;
572 function_utils.has_kwargs(custom_getter)):