@@ -2,37 +2,37 @@ use std::borrow::Cow;
22use std:: fmt:: Debug ;
33
44use proc_macro2:: { Ident , Span , TokenStream } ;
5- use quote:: { ToTokens , format_ident, quote, quote_spanned} ;
5+ use quote:: { format_ident, quote, quote_spanned, ToTokens } ;
66use syn:: ext:: IdentExt ;
77use syn:: parse:: { Parse , ParseStream } ;
88use syn:: punctuated:: Punctuated ;
9- use syn:: { ImplItemFn , Result , Token , parse_quote, parse_quote_spanned, spanned:: Spanned } ;
9+ use syn:: { parse_quote, parse_quote_spanned, spanned:: Spanned , ImplItemFn , Result , Token } ;
1010
1111use crate :: attributes:: kw:: frozen;
1212use crate :: attributes:: {
13- self , CrateAttribute , ExtendsAttribute , FreelistAttribute , ModuleAttribute , NameAttribute ,
14- NameLitStr , RenameAllAttribute , StrFormatterAttribute , kw , take_pyo3_options ,
13+ self , kw , take_pyo3_options , CrateAttribute , ExtendsAttribute , FreelistAttribute ,
14+ ModuleAttribute , NameAttribute , NameLitStr , RenameAllAttribute , StrFormatterAttribute ,
1515} ;
1616use crate :: combine_errors:: CombineErrors ;
1717#[ cfg( feature = "experimental-inspect" ) ]
1818use crate :: introspection:: {
19- PythonIdentifier , class_introspection_code, function_introspection_code, introspection_id_const,
19+ class_introspection_code, function_introspection_code, introspection_id_const, PythonIdentifier ,
2020} ;
2121use crate :: konst:: { ConstAttributes , ConstSpec } ;
2222use crate :: method:: { FnArg , FnSpec , PyArg , RegularArg } ;
2323use crate :: pyfunction:: ConstructorAttribute ;
2424#[ cfg( feature = "experimental-inspect" ) ]
2525use crate :: pyfunction:: FunctionSignature ;
26- use crate :: pyimpl:: { PyClassMethodsType , gen_py_const, get_cfg_attributes} ;
26+ use crate :: pyimpl:: { gen_py_const, get_cfg_attributes, PyClassMethodsType } ;
2727#[ cfg( feature = "experimental-inspect" ) ]
2828use crate :: pymethod:: field_python_name;
2929use crate :: pymethod:: {
30- __GETITEM__ , __HASH__ , __INT__ , __LEN__ , __NEW__ , __REPR__ , __RICHCMP__ , __STR__ ,
31- MethodAndMethodDef , MethodAndSlotDef , PropertyType , SlotDef , impl_py_class_attribute ,
32- impl_py_getter_def , impl_py_setter_def ,
30+ impl_py_class_attribute , impl_py_getter_def , impl_py_setter_def , MethodAndMethodDef ,
31+ MethodAndSlotDef , PropertyType , SlotDef , __GETITEM__ , __HASH__ , __INT__ , __LEN__ , __NEW__ ,
32+ __REPR__ , __RICHCMP__ , __STR__ ,
3333} ;
3434use crate :: pyversions:: { is_abi3_before, is_py_before} ;
35- use crate :: utils:: { self , Ctx , PythonDoc , apply_renaming_rule } ;
35+ use crate :: utils:: { self , apply_renaming_rule , Ctx , PythonDoc } ;
3636use crate :: PyFunctionOptions ;
3737
3838/// If the class is derived from a Rust `struct` or `enum`.
0 commit comments