@@ -2,25 +2,23 @@ pub(crate) use decl::make_module;
22
33#[ pymodule( name = "itertools" ) ]
44mod decl {
5+ use crate :: common:: {
6+ lock:: { PyMutex , PyRwLock , PyRwLockWriteGuard } ,
7+ rc:: PyRc ,
8+ } ;
9+ use crate :: {
10+ builtins:: { int, PyInt , PyIntRef , PyTupleRef , PyTypeRef } ,
11+ function:: { Args , FuncArgs , OptionalArg , OptionalOption } ,
12+ iterator:: { call_next, get_iter, get_next_object} ,
13+ slots:: { PyIter , SlotConstructor } ,
14+ IdProtocol , IntoPyObject , PyCallable , PyObjectRef , PyRef , PyResult , PyValue , PyWeakRef ,
15+ StaticType , TypeProtocol , VirtualMachine ,
16+ } ;
517 use crossbeam_utils:: atomic:: AtomicCell ;
618 use num_bigint:: BigInt ;
719 use num_traits:: { One , Signed , ToPrimitive , Zero } ;
820 use std:: fmt;
921
10- use crate :: builtins:: int:: { self , PyInt , PyIntRef } ;
11- use crate :: builtins:: pytype:: PyTypeRef ;
12- use crate :: builtins:: tuple:: PyTupleRef ;
13- use crate :: common:: lock:: { PyMutex , PyRwLock , PyRwLockWriteGuard } ;
14- use crate :: common:: rc:: PyRc ;
15- use crate :: function:: { Args , FuncArgs , OptionalArg , OptionalOption } ;
16- use crate :: iterator:: { call_next, get_iter, get_next_object} ;
17- use crate :: slots:: { PyIter , SlotConstructor } ;
18- use crate :: vm:: VirtualMachine ;
19- use crate :: {
20- IdProtocol , IntoPyObject , PyCallable , PyObjectRef , PyRef , PyResult , PyValue , PyWeakRef ,
21- StaticType , TypeProtocol ,
22- } ;
23-
2422 #[ pyattr]
2523 #[ pyclass( name = "chain" ) ]
2624 #[ derive( Debug , PyValue ) ]
0 commit comments