2020-03-22 08:13:02 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
|
|
|
#[pyclass(extend=pyo3::types::PyDict)]
|
|
|
|
struct TypoIntheKey {}
|
|
|
|
|
|
|
|
#[pyclass(extends = "PyDict")]
|
|
|
|
struct InvalidExtends {}
|
|
|
|
|
|
|
|
#[pyclass(name = m::MyClass)]
|
|
|
|
struct InvalidName {}
|
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
#[pyclass(name = "Custom Name")]
|
|
|
|
struct InvalidName2 {}
|
|
|
|
|
|
|
|
#[pyclass(name = CustomName)]
|
|
|
|
struct DeprecatedName {}
|
|
|
|
|
2020-03-22 08:13:02 +00:00
|
|
|
#[pyclass(module = my_module)]
|
|
|
|
struct InvalidModule {}
|
|
|
|
|
2020-03-22 09:48:22 +00:00
|
|
|
#[pyclass(weakrev)]
|
|
|
|
struct InvalidArg {}
|
|
|
|
|
2020-03-22 08:13:02 +00:00
|
|
|
fn main() {}
|