Skip to content

Commit 0bf9fed

Browse files
fix docs imports
1 parent 0bdab1f commit 0bf9fed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fmt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[cfg(all(doc, not(all(Py_3_14, not(Py_LIMITED_API)))))]
2+
use crate::{types::PyString, Python};
13
#[cfg(all(Py_3_14, not(Py_LIMITED_API)))]
24
use {
35
crate::ffi::{
@@ -7,9 +9,8 @@ use {
79
crate::ffi_ptr_ext::FfiPtrExt,
810
crate::impl_::callback::WrappingCastTo,
911
crate::py_result_ext::PyResultExt,
10-
crate::types::PyString,
1112
crate::IntoPyObject,
12-
crate::{ffi, Bound, PyErr, PyResult, Python},
13+
crate::{ffi, Bound, PyErr, PyResult},
1314
std::fmt,
1415
std::mem::ManuallyDrop,
1516
std::ptr::NonNull,

0 commit comments

Comments
 (0)