-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3603 from davidhewitt/0.19-deprecations
remove all functionality deprecated in 0.19
- Loading branch information
Showing
13 changed files
with
11 additions
and
189 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove all functionality deprecated in PyO3 0.19. |
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
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,10 +1,4 @@ | ||
//! Symbols used to denote deprecated usages of PyO3's proc macros. | ||
#[deprecated( | ||
since = "0.19.0", | ||
note = "put `text_signature` on `#[new]` instead of `#[pyclass]`" | ||
)] | ||
pub const PYCLASS_TEXT_SIGNATURE: () = (); | ||
|
||
#[deprecated(since = "0.20.0", note = "use `#[new]` instead of `#[__new__]`")] | ||
pub const PYMETHODS_NEW_DEPRECATED_FORM: () = (); |
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
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
use pyo3::prelude::*; | ||
|
||
#[pyclass] | ||
#[pyo3(text_signature = "()")] | ||
struct MyClass; | ||
|
||
#[pymethods] | ||
|
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,17 +1,11 @@ | ||
error: use of deprecated constant `pyo3::impl_::deprecations::PYMETHODS_NEW_DEPRECATED_FORM`: use `#[new]` instead of `#[__new__]` | ||
--> tests/ui/deprecations.rs:11:7 | ||
--> tests/ui/deprecations.rs:10:7 | ||
| | ||
11 | #[__new__] | ||
10 | #[__new__] | ||
| ^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> tests/ui/deprecations.rs:1:9 | ||
| | ||
1 | #![deny(deprecated)] | ||
| ^^^^^^^^^^ | ||
|
||
error: use of deprecated constant `pyo3::impl_::deprecations::PYCLASS_TEXT_SIGNATURE`: put `text_signature` on `#[new]` instead of `#[pyclass]` | ||
--> tests/ui/deprecations.rs:6:8 | ||
| | ||
6 | #[pyo3(text_signature = "()")] | ||
| ^^^^^^^^^^^^^^ |
Oops, something went wrong.