You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: `async fn` is not yet supported for Python functions.
151
157
152
158
Additional crates such as `pyo3-asyncio` can be used to integrate async Rust and Python. For more information, see https://github.com/PyO3/pyo3/issues/1632
153
-
--> tests/ui/invalid_pymethods.rs:167:5
159
+
--> tests/ui/invalid_pymethods.rs:166:5
154
160
|
155
-
167 | async fn async_method(&self) {}
161
+
166 | async fn async_method(&self) {}
156
162
| ^^^^^
157
163
158
164
error: `pass_module` cannot be used on Python methods
159
-
--> tests/ui/invalid_pymethods.rs:172:12
165
+
--> tests/ui/invalid_pymethods.rs:171:12
160
166
|
161
-
172 | #[pyo3(pass_module)]
167
+
171 | #[pyo3(pass_module)]
162
168
| ^^^^^^^^^^^
163
169
164
170
error: Python objects are shared, so 'self' cannot be moved out of the Python interpreter.
error: macros cannot be used as items in `#[pymethods]` impl blocks
172
178
= note: this was previously accepted and ignored
173
-
--> tests/ui/invalid_pymethods.rs:213:5
179
+
--> tests/ui/invalid_pymethods.rs:212:5
174
180
|
175
-
213 | macro_invocation!();
181
+
212 | macro_invocation!();
176
182
| ^^^^^^^^^^^^^^^^
177
183
178
184
error[E0119]: conflicting implementations of trait `pyo3::impl_::pyclass::PyClassNewTextSignature<TwoNew>` for type `pyo3::impl_::pyclass::PyClassImplCollector<TwoNew>`
179
-
--> tests/ui/invalid_pymethods.rs:183:1
185
+
--> tests/ui/invalid_pymethods.rs:182:1
180
186
|
181
-
183 | #[pymethods]
187
+
182 | #[pymethods]
182
188
| ^^^^^^^^^^^^
183
189
| |
184
190
| first implementation here
@@ -187,9 +193,9 @@ error[E0119]: conflicting implementations of trait `pyo3::impl_::pyclass::PyClas
187
193
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
188
194
189
195
error[E0592]: duplicate definitions with name `__pymethod___new____`
190
-
--> tests/ui/invalid_pymethods.rs:183:1
196
+
--> tests/ui/invalid_pymethods.rs:182:1
191
197
|
192
-
183 | #[pymethods]
198
+
182 | #[pymethods]
193
199
| ^^^^^^^^^^^^
194
200
| |
195
201
| duplicate definitions for `__pymethod___new____`
@@ -198,9 +204,9 @@ error[E0592]: duplicate definitions with name `__pymethod___new____`
198
204
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
199
205
200
206
error[E0592]: duplicate definitions with name `__pymethod_func__`
0 commit comments