pyo3/tests/ui/invalid_argument_attributes.rs
David Hewitt 57bbc32e7c
add experimental-async feature (#3931)
* add `experimental-async` feature

* gate async doctests on feature
2024-03-06 00:54:45 +00:00

19 lines
472 B
Rust

use pyo3::prelude::*;
#[pyfunction]
fn invalid_attribute(#[pyo3(get)] param: String) {}
#[pyfunction]
fn from_py_with_no_value(#[pyo3(from_py_with)] param: String) {}
#[pyfunction]
fn from_py_with_string(#[pyo3("from_py_with")] param: String) {}
#[pyfunction]
fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] param: String) {}
#[pyfunction]
fn from_py_with_repeated(#[pyo3(from_py_with = "func", from_py_with = "func")] param: String) {}
fn main() {}