From 611ecc15fa56f34b3cd22e6e025df8757fd6efc7 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Thu, 25 Aug 2022 10:03:57 +0200 Subject: [PATCH] fix: export new dict views types (#2590) * fix: export new dict views types * fix exposed PyDictItems Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> * add changelog entry Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> --- CHANGELOG.md | 6 ++++++ src/types/mod.rs | 2 ++ 2 files changed, 8 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 diff --git a/src/types/mod.rs b/src/types/mod.rs index f0e0e2e9f4a..da88acc4233 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::{PyDictItems, PyDictKeys, PyDictValues}; pub use self::floatob::PyFloat; #[cfg(all(not(Py_LIMITED_API), not(PyPy)))] pub use self::frame::PyFrame;