554cffd60d
* allow from_py_with inside #[derive(FromPyObject)] * split up FnSpec::parse
16 lines
360 B
Rust
16 lines
360 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) {}
|
|
|
|
fn main() {}
|