2021-02-20 15:15:20 +00:00
|
|
|
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) {}
|
|
|
|
|
2023-11-25 06:30:41 +00:00
|
|
|
#[pyfunction]
|
|
|
|
fn from_py_with_repeated(#[pyo3(from_py_with = "func", from_py_with = "func")] param: String) {}
|
|
|
|
|
2021-02-20 15:15:20 +00:00
|
|
|
fn main() {}
|