File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,14 @@ def _reset(var=None):
44
44
If str, it is the name of the configuration variable to reset. If lst,
45
45
it is a list of configuration variables to reset. If None, then all
46
46
configuration variables are reset to their default values.
47
-
47
+
48
48
Raises
49
49
------
50
50
UserWarning
51
51
If the specified configuration variable is not recognized
52
52
"""
53
53
config_vars = [
54
- k
55
- for k , _ in globals ().items ()
56
- if k .isupper () and k .startswith ("STUMPY" )
54
+ k for k , _ in globals ().items () if k .isupper () and k .startswith ("STUMPY" )
57
55
]
58
56
59
57
if var is None :
@@ -65,13 +63,13 @@ def _reset(var=None):
65
63
66
64
if not set (var ).issubset (config_vars ):
67
65
msg = (
68
- f"Could not reset the following unrecognized configuration variable(s): "
66
+ f"Could not reset the following unrecognized configuration variable(s): "
69
67
+ f"{ set (var ) - set (config_vars )} "
70
68
)
71
69
warnings .warn (msg )
72
-
70
+
73
71
# Reset all config variables back to default values
74
72
for v in var :
75
73
globals ()[v ] = _STUMPY_DEFAULTS [v ]
76
74
77
- return
75
+ return
You can’t perform that action at this time.
0 commit comments