export `Bound` and `Borrowed` from lib.rs

This commit is contained in:
David Hewitt 2023-12-24 19:35:50 +00:00
parent 877e34ac86
commit 1004ffa7d6
1 changed files with 1 additions and 3 deletions

View File

@ -303,7 +303,7 @@ pub use crate::err::{
pub use crate::gil::GILPool;
#[cfg(not(PyPy))]
pub use crate::gil::{prepare_freethreaded_python, with_embedded_python_interpreter};
pub use crate::instance::{Py, PyNativeType, PyObject};
pub use crate::instance::{Borrowed, Bound, Py, PyNativeType, PyObject};
pub use crate::marker::Python;
pub use crate::pycell::{PyCell, PyRef, PyRefMut};
pub use crate::pyclass::PyClass;
@ -312,8 +312,6 @@ pub use crate::type_object::{PyTypeCheck, PyTypeInfo};
pub use crate::types::PyAny;
pub use crate::version::PythonVersionInfo;
// Expected to become public API in 0.21 under a different name
pub(crate) use crate::instance::Bound;
pub(crate) mod ffi_ptr_ext;
pub(crate) mod py_result_ext;