error: Python functions cannot have generic type parameters --> tests/ui/invalid_pyfunctions.rs:5:21 | 5 | fn generic_function(_value: T) {} | ^ error: Python functions cannot have `impl Trait` arguments --> tests/ui/invalid_pyfunctions.rs:8:37 | 8 | fn impl_trait_function(_impl_trait: impl AsRef) {} | ^^^^ error: wildcard argument names are not supported --> tests/ui/invalid_pyfunctions.rs:11:22 | 11 | fn wildcard_argument(_: i32) {} | ^ error: destructuring in arguments is not supported --> tests/ui/invalid_pyfunctions.rs:14:26 | 14 | fn destructured_argument((_a, _b): (i32, i32)) {} | ^^^^^^^^ error: required arguments after an `Option<_>` argument are ambiguous = help: add a `#[pyo3(signature)]` annotation on this function to unambiguously specify the default values for all optional parameters --> tests/ui/invalid_pyfunctions.rs:17:63 | 17 | fn function_with_required_after_option(_opt: Option, _x: i32) {} | ^^^ error: args cannot be optional --> tests/ui/invalid_pyfunctions.rs:21:32 | 21 | fn function_with_optional_args(args: Option>) { | ^^^^ error: kwargs must be Option<_> --> tests/ui/invalid_pyfunctions.rs:27:34 | 27 | fn function_with_required_kwargs(kwargs: Bound<'_, PyDict>) { | ^^^^^^ error: expected `&PyModule` or `Py` as first argument with `pass_module` --> tests/ui/invalid_pyfunctions.rs:32:37 | 32 | fn pass_module_but_no_arguments<'py>() {} | ^^ error[E0277]: the trait bound `&str: From>` is not satisfied --> tests/ui/invalid_pyfunctions.rs:36:14 | 36 | _string: &str, | ^ the trait `From>` is not implemented for `&str`, which is required by `BoundRef<'_, '_, pyo3::types::PyModule>: Into<_>` | = help: the following other types implement trait `From`: > > > >> >> > = note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&str>`