-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Georg Brandl <[email protected]>
- Loading branch information
1 parent
9b5ea3f
commit 3b17ab0
Showing
3 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
error: Expected one of freelist/name/extends/module, but got extend | ||
error: Expected one of freelist/name/extends/module | ||
--> $DIR/invalid_pyclass_args.rs:3:11 | ||
| | ||
3 | #[pyclass(extend=pyo3::types::PyDict)] | ||
| ^^^^^^ | ||
|
||
error: Expected type path(e.g., my_mod::MyClass), but got "PyDict" | ||
error: Expected type path (e.g., my_mod::BaseClass) | ||
--> $DIR/invalid_pyclass_args.rs:6:21 | ||
| | ||
6 | #[pyclass(extends = "PyDict")] | ||
| ^^^^^^^^ | ||
|
||
error: Expected single type path(e.g., Name), but got m :: MyClass | ||
error: Expected type name (e.g., Name) | ||
--> $DIR/invalid_pyclass_args.rs:9:18 | ||
| | ||
9 | #[pyclass(name = m::MyClass)] | ||
| ^^^^^^^^^^ | ||
|
||
error: Expected string literal(e.g., "mymod"), but got my_module | ||
error: Expected string literal (e.g., "my_mod") | ||
--> $DIR/invalid_pyclass_args.rs:12:20 | ||
| | ||
12 | #[pyclass(module = my_module)] | ||
| ^^^^^^^^^ | ||
|
||
error: Expected one of gc/weakref/subclass/dict | ||
--> $DIR/invalid_pyclass_args.rs:15:11 | ||
| | ||
15 | #[pyclass(weakrev)] | ||
| ^^^^^^^ |