@@ -4,8 +4,7 @@ use crate::{
4
4
class:: PyClassImpl ,
5
5
function:: { FuncArgs , IntoPyNativeFunc } ,
6
6
types:: { Callable , Constructor , GetDescriptor , Initializer } ,
7
- Context , PyObjectRef , PyPayload , PyRef , PyResult , VirtualMachine ,
8
- AsObject
7
+ AsObject , Context , PyObjectRef , PyPayload , PyRef , PyResult , VirtualMachine ,
9
8
} ;
10
9
11
10
#[ pyclass( module = false , name = "staticmethod" ) ]
@@ -67,13 +66,17 @@ impl Initializer for PyStaticMethod {
67
66
type Args = PyObjectRef ;
68
67
69
68
fn init ( zelf : PyRef < Self > , args : Self :: Args , vm : & VirtualMachine ) -> PyResult < ( ) > {
70
- zelf. as_object ( ) . set_attr ( "__doc__" , args. get_attr ( "__doc__" , vm) ?, vm) ?;
69
+ zelf. as_object ( )
70
+ . set_attr ( "__doc__" , args. get_attr ( "__doc__" , vm) ?, vm) ?;
71
71
// zelf.as_object().set_attr("__format__", args.get_attr("__format__", vm)?, vm);
72
72
Ok ( ( ) )
73
73
}
74
74
}
75
75
76
- #[ pyimpl( with( Callable , GetDescriptor , Constructor , Initializer ) , flags( BASETYPE , HAS_DICT ) ) ]
76
+ #[ pyimpl(
77
+ with( Callable , GetDescriptor , Constructor , Initializer ) ,
78
+ flags( BASETYPE , HAS_DICT )
79
+ ) ]
77
80
impl PyStaticMethod {
78
81
#[ pyproperty( magic) ]
79
82
fn isabstractmethod ( & self , vm : & VirtualMachine ) -> PyObjectRef {
0 commit comments