2022-11-15 20:10:19 +00:00
error: Expected 1 arguments, got 0
2023-06-03 14:55:13 +00:00
--> tests/ui/invalid_proto_pymethods.rs:19:8
2022-11-15 20:10:19 +00:00
|
2023-06-03 14:55:13 +00:00
19 | fn truediv_expects_one_argument(&self) -> PyResult<()> {
2022-11-15 20:10:19 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Expected 1 arguments, got 0
2023-06-03 14:55:13 +00:00
--> tests/ui/invalid_proto_pymethods.rs:27:8
2022-11-15 20:10:19 +00:00
|
2023-06-03 14:55:13 +00:00
27 | fn truediv_expects_one_argument_py(&self, _py: Python<'_>) -> PyResult<()> {
2022-11-15 20:10:19 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: `signature` cannot be used with magic method `__bool__`
2023-06-03 14:55:13 +00:00
--> tests/ui/invalid_proto_pymethods.rs:38:31
2022-11-15 20:10:19 +00:00
|
2023-06-03 14:55:13 +00:00
38 | #[pyo3(name = "__bool__", signature = ())]
2022-11-15 20:10:19 +00:00
| ^^^^^^^^^
error: `text_signature` cannot be used with magic method `__bool__`
2023-06-03 14:55:13 +00:00
--> tests/ui/invalid_proto_pymethods.rs:46:31
2022-11-15 20:10:19 +00:00
|
2023-06-03 14:55:13 +00:00
46 | #[pyo3(name = "__bool__", text_signature = "")]
2022-11-15 20:10:19 +00:00
| ^^^^^^^^^^^^^^
2023-06-03 14:55:13 +00:00
error[E0592]: duplicate definitions with name `__pymethod___richcmp____`
--> tests/ui/invalid_proto_pymethods.rs:55:1
|
55 | #[pymethods]
| ^^^^^^^^^^^^
| |
| duplicate definitions for `__pymethod___richcmp____`
| other definition for `__pymethod___richcmp____`
|
2024-03-04 07:54:04 +00:00
= note: this error originates in the macro `::pyo3::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)