pyo3/types/dict/keys.rs
1#[cfg(not(any(PyPy, GraalPy, RustPython)))]
2use crate::{ffi, PyAny};
3
4/// Represents a Python `dict_keys`.
5#[cfg(not(any(PyPy, GraalPy, RustPython)))]
6#[repr(transparent)]
7pub struct PyDictKeys(PyAny);
8
9#[cfg(not(any(PyPy, GraalPy, RustPython)))]
10pyobject_native_type_core!(
11 PyDictKeys,
12 pyobject_native_static_type_object!(ffi::PyDictKeys_Type),
13 "builtins",
14 "dict_keys",
15 #checkfunction=ffi::PyDictKeys_Check
16);