Skip to content
Prev Previous commit
Next Next commit
More unused imports
  • Loading branch information
ShaharNaveh committed Feb 27, 2026
commit 9755395c7d342a50b3cdf883766cfb3c2e17314e
12 changes: 6 additions & 6 deletions crates/vm/src/stdlib/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2567,11 +2567,8 @@ pub mod module {
#[pymodule(sub)]
mod posix_sched {
use crate::{
AsObject, Py, PyObjectRef, PyResult, VirtualMachine,
builtins::{PyInt, PyTupleRef},
convert::ToPyObject,
function::FuncArgs,
types::PyStructSequence,
AsObject, Py, PyObjectRef, PyResult, VirtualMachine, builtins::PyTupleRef,
convert::ToPyObject, function::FuncArgs, types::PyStructSequence,
};

#[derive(FromArgs)]
Expand Down Expand Up @@ -2630,7 +2627,10 @@ mod posix_sched {

#[cfg(not(target_env = "musl"))]
fn convert_sched_param(obj: &PyObjectRef, vm: &VirtualMachine) -> PyResult<libc::sched_param> {
use crate::{builtins::PyTuple, class::StaticType};
use crate::{
builtins::{PyInt, PyTuple},
class::StaticType,
};
if !obj.fast_isinstance(PySchedParam::static_type()) {
return Err(vm.new_type_error("must have a sched_param object".to_owned()));
}
Expand Down