Run `cargo fmt` on `pyo3-derive-backend` and `tests`
This commit is contained in:
parent
4e3d828181
commit
51be6a60fe
|
@ -4,8 +4,8 @@ use crate::defs;
|
|||
use crate::func::impl_method_proto;
|
||||
use crate::method::FnSpec;
|
||||
use crate::pymethod;
|
||||
use proc_macro2::TokenStream;
|
||||
use proc_macro2::Span;
|
||||
use proc_macro2::TokenStream;
|
||||
use quote::quote;
|
||||
use quote::ToTokens;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use proc_macro2::TokenStream;
|
||||
use proc_macro2::Span;
|
||||
use proc_macro2::TokenStream;
|
||||
use syn;
|
||||
|
||||
pub fn print_err(msg: String, t: TokenStream) {
|
||||
|
|
|
@ -42,7 +42,12 @@ fn class_with_properties() {
|
|||
py_run!(py, inst, "assert inst.get_num() == inst.DATA");
|
||||
|
||||
let d = [("C", py.get_type::<ClassWithProperties>())].into_py_dict(py);
|
||||
py.run("assert C.DATA.__doc__ == 'a getter for data'", None, Some(d)).unwrap();
|
||||
py.run(
|
||||
"assert C.DATA.__doc__ == 'a getter for data'",
|
||||
None,
|
||||
Some(d),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
#[pyclass]
|
||||
|
|
Loading…
Reference in New Issue