Skip to content

Commit 37add84

Browse files
committed
fixed format
1 parent 1f95f77 commit 37add84

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

stumpy/config.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@ def _reset(var=None):
4444
If str, it is the name of the configuration variable to reset. If lst,
4545
it is a list of configuration variables to reset. If None, then all
4646
configuration variables are reset to their default values.
47-
47+
4848
Raises
4949
------
5050
UserWarning
5151
If the specified configuration variable is not recognized
5252
"""
5353
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")
5755
]
5856

5957
if var is None:
@@ -65,13 +63,13 @@ def _reset(var=None):
6563

6664
if not set(var).issubset(config_vars):
6765
msg = (
68-
f"Could not reset the following unrecognized configuration variable(s): "
66+
f"Could not reset the following unrecognized configuration variable(s): "
6967
+ f"{set(var) - set(config_vars)}"
7068
)
7169
warnings.warn(msg)
72-
70+
7371
# Reset all config variables back to default values
7472
for v in var:
7573
globals()[v] = _STUMPY_DEFAULTS[v]
7674

77-
return
75+
return

0 commit comments

Comments
 (0)