chore: eliminate all usage of pyo3::prelude::*

This commit is contained in:
2026-07-14 20:50:07 -04:00
parent 6abe278aa3
commit 17fabbf178
15 changed files with 42 additions and 27 deletions

View File

@@ -4,8 +4,8 @@ use ijson::{IArray, INumber, IObject, IString, IValue};
#[cfg(feature = "pyo3")]
use pyo3::{
exceptions::{PyException, PyTypeError, PyValueError},
prelude::*,
types::{PyList, PyNone},
types::{PyAnyMethods as _, PyList, PyNone, PyTypeMethods as _},
Borrowed, Bound, FromPyObject, IntoPyObject, PyAny, PyErr, Python,
};
use snafu::{ResultExt, Snafu};

View File

@@ -7,8 +7,8 @@ use itertools::Itertools;
#[cfg(feature = "pyo3")]
use pyo3::{
exceptions::PyTypeError,
prelude::*,
types::{PyNone, PyTuple},
types::{PyAnyMethods as _, PyNone, PyTuple, PyTypeMethods as _},
Borrowed, Bound, FromPyObject, IntoPyObject, PyAny, PyErr, Python,
};
use snafu::{ResultExt, Snafu};