2021-01-09 17:33:28 +00:00
|
|
|
error: expected one of freelist/name/extends/module
|
2020-03-22 08:13:02 +00:00
|
|
|
--> $DIR/invalid_pyclass_args.rs:3:11
|
|
|
|
|
|
|
|
|
3 | #[pyclass(extend=pyo3::types::PyDict)]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: expected type path (e.g., my_mod::BaseClass)
|
2020-03-22 08:13:02 +00:00
|
|
|
--> $DIR/invalid_pyclass_args.rs:6:21
|
|
|
|
|
|
|
|
|
6 | #[pyclass(extends = "PyDict")]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: expected type name (e.g. "Name")
|
2020-03-22 08:13:02 +00:00
|
|
|
--> $DIR/invalid_pyclass_args.rs:9:18
|
|
|
|
|
|
|
|
|
9 | #[pyclass(name = m::MyClass)]
|
2021-01-09 17:33:28 +00:00
|
|
|
| ^
|
2020-03-22 08:13:02 +00:00
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
error: expected a single identifier in double-quotes
|
|
|
|
--> $DIR/invalid_pyclass_args.rs:12:18
|
|
|
|
|
|
|
|
|
12 | #[pyclass(name = "Custom Name")]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: since PyO3 0.13 a pyclass name should be in double-quotes, e.g. "CustomName"
|
|
|
|
--> $DIR/invalid_pyclass_args.rs:15:18
|
|
|
|
|
|
|
|
|
15 | #[pyclass(name = CustomName)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: expected string literal (e.g., "my_mod")
|
2020-12-12 09:50:25 +00:00
|
|
|
--> $DIR/invalid_pyclass_args.rs:18:20
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
18 | #[pyclass(module = my_module)]
|
2020-03-22 08:13:02 +00:00
|
|
|
| ^^^^^^^^^
|
2020-03-22 09:48:22 +00:00
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: expected one of gc/weakref/subclass/dict/unsendable
|
2020-12-12 09:50:25 +00:00
|
|
|
--> $DIR/invalid_pyclass_args.rs:21:11
|
2020-03-22 09:48:22 +00:00
|
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
21 | #[pyclass(weakrev)]
|
2020-03-22 09:48:22 +00:00
|
|
|
| ^^^^^^^
|