Skip to content

Commit fdaa96d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 699d394 commit fdaa96d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utilities/constants.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@ def __getattribute__(self, timeout: str) -> int:
218218
raise AttributeError("Invalid timeout specified, it should be in the format TIMEOUT_XXYY.")
219219
delta = timedelta()
220220
for split_timeout in timeout.split("_")[1:]:
221-
if parsed := re.search(
222-
r"(\d+)(SECS?|MINS?|HRS?|DAYS?|WEEKS?)$", split_timeout
223-
):
221+
if parsed := re.search(r"(\d+)(SECS?|MINS?|HRS?|DAYS?|WEEKS?)$", split_timeout):
224222
number, duration = parsed.groups()
225223
number = int(number)
226224
match duration:

0 commit comments

Comments
 (0)