Function
reject_callable_args_for_spec
(
args: &Bound<'_, PyTuple>,
kwargs: Option<&Bound<'_, PyDict>>,
)
Source from the content-addressed store, hash-verified
| 32 | } |
| 33 | |
| 34 | fn reject_callable_args_for_spec( |
| 35 | args: &Bound<'_, PyTuple>, |
| 36 | kwargs: Option<&Bound<'_, PyDict>>, |
| 37 | ) -> PyResult<()> { |
| 38 | if args.is_empty() && kwargs.is_none() { |
| 39 | return Ok(()); |
| 40 | } |
| 41 | Err(PyErr::new::<pyo3::exceptions::PyTypeError, _>( |
| 42 | "go() only accepts *args and **kwargs for Python callables", |
| 43 | )) |
| 44 | } |
| 45 | |
| 46 | enum CallableOutcome { |
| 47 | Cancelled, |
Tested by
no test coverage detected