File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ def get_arg_number(arg):
38
38
39
39
40
40
class Timer (Protocol ):
41
- def start (self ):
42
- ...
41
+ def start (self ): ...
43
42
44
43
def stop (self ):
45
44
"""
@@ -105,14 +104,11 @@ def stop(self):
105
104
# manager so that we can run both CuPy and SciPy
106
105
# programs with resource scoping.
107
106
class DummyScope :
108
- def __init__ (self ):
109
- ...
107
+ def __init__ (self ): ...
110
108
111
- def __enter__ (self ):
112
- ...
109
+ def __enter__ (self ): ...
113
110
114
- def __exit__ (self , _ , __ , ___ ):
115
- ...
111
+ def __exit__ (self , _ , __ , ___ ): ...
116
112
117
113
def __getitem__ (self , item ):
118
114
return self
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ def should_wrap(obj: object) -> bool:
43
43
44
44
45
45
class AnyCallable (Protocol ):
46
- def __call__ (self , * args : Any , ** kwargs : Any ) -> Any :
47
- ...
46
+ def __call__ (self , * args : Any , ** kwargs : Any ) -> Any : ...
48
47
49
48
50
49
def wrap (func : AnyCallable ) -> Any :
You can’t perform that action at this time.
0 commit comments