File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 51
51
52
52
from .occ_impl .exporters .svg import getSVG , exportSVG
53
53
54
- from .utils import deprecate_kwarg , deprecate , deprecate_kwarg_name
54
+ from .utils import deprecate , deprecate_kwarg_name
55
55
56
56
from .selectors import (
57
57
Selector ,
Original file line number Diff line number Diff line change @@ -25,18 +25,6 @@ def wrapped(*args, **kwargs):
25
25
26
26
return wrapped
27
27
28
-
29
- class deprecate :
30
- def __call__ (self , f ):
31
- @wraps (f )
32
- def wrapped (* args , ** kwargs ):
33
-
34
- warn (f"{ f .__name__ } will be removed in the next release." , FutureWarning )
35
-
36
- return f (* args , ** kwargs )
37
-
38
- return wrapped
39
-
40
28
class deprecate_kwarg_name :
41
29
def __init__ (self , name , new_name ):
42
30
@@ -57,4 +45,16 @@ def wrapped(*args, **kwargs):
57
45
58
46
return f (* args , ** kwargs )
59
47
60
- return wrapped
48
+ return wrapped
49
+
50
+ class deprecate :
51
+ def __call__ (self , f ):
52
+ @wraps (f )
53
+ def wrapped (* args , ** kwargs ):
54
+
55
+ warn (f"{ f .__name__ } will be removed in the next release." , FutureWarning )
56
+
57
+ return f (* args , ** kwargs )
58
+
59
+ return wrapped
60
+
You can’t perform that action at this time.
0 commit comments