Skip to content

Commit

Permalink
add missing deprecation for PyDict::from_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu committed Feb 22, 2024
1 parent 9e74c85 commit fd292ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ impl PyDict {
}

/// Deprecated form of [`from_sequence_bound`][PyDict::from_sequence_bound].
#[cfg_attr(
all(not(PyPy), not(feature = "gil-refs")),
deprecated(
since = "0.21.0",
note = "`PyDict::from_sequence` will be replaced by `PyDict::from_sequence_bound` in a future PyO3 version"
)
)]
#[inline]
#[cfg(not(PyPy))]
pub fn from_sequence(seq: &PyAny) -> PyResult<&PyDict> {
Expand Down

0 comments on commit fd292ac

Please sign in to comment.