From 22c13189c9cb11e95d5d44e8f5c46f13a01264b2 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Wed, 24 Aug 2022 13:22:00 +0200 Subject: [PATCH 1/3] fix: export new dict views types --- src/types/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/mod.rs b/src/types/mod.rs index f0e0e2e9f4a..d631d0d981d 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -16,6 +16,8 @@ pub use self::datetime::{ PyTzInfo, PyTzInfoAccess, }; pub use self::dict::{IntoPyDict, PyDict}; +#[cfg(not(PyPy))] +pub use self::dict::{PyDictItem, PyDictKeys, PyDictValues}; pub use self::floatob::PyFloat; #[cfg(all(not(Py_LIMITED_API), not(PyPy)))] pub use self::frame::PyFrame; From 1b7e39d1f43e043e53427e17eefb7e7955e5ef95 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Wed, 24 Aug 2022 21:02:35 +0200 Subject: [PATCH 2/3] fix exposed PyDictItems Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> --- src/types/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index d631d0d981d..da88acc4233 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -17,7 +17,7 @@ pub use self::datetime::{ }; pub use self::dict::{IntoPyDict, PyDict}; #[cfg(not(PyPy))] -pub use self::dict::{PyDictItem, PyDictKeys, PyDictValues}; +pub use self::dict::{PyDictItems, PyDictKeys, PyDictValues}; pub use self::floatob::PyFloat; #[cfg(all(not(Py_LIMITED_API), not(PyPy)))] pub use self::frame::PyFrame; From e1af917da36ade49d8e9a8abd4076ca0e5c880ee Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Wed, 24 Aug 2022 21:03:34 +0200 Subject: [PATCH 3/3] add changelog entry --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87e68873251..73b1244ea6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ PyO3 versions, please see the [migration guide](https://pyo3.rs/latest/migration The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fix visibility of `PyDictItems`, `PyDictKeys`, and `PyDictValues` types added in PyO3 0.17.0. + ## [0.17.0] - 2022-08-23 ### Packaging