We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699d394 commit fdaa96dCopy full SHA for fdaa96d
utilities/constants.py
@@ -218,9 +218,7 @@ def __getattribute__(self, timeout: str) -> int:
218
raise AttributeError("Invalid timeout specified, it should be in the format TIMEOUT_XXYY.")
219
delta = timedelta()
220
for split_timeout in timeout.split("_")[1:]:
221
- if parsed := re.search(
222
- r"(\d+)(SECS?|MINS?|HRS?|DAYS?|WEEKS?)$", split_timeout
223
- ):
+ if parsed := re.search(r"(\d+)(SECS?|MINS?|HRS?|DAYS?|WEEKS?)$", split_timeout):
224
number, duration = parsed.groups()
225
number = int(number)
226
match duration:
0 commit comments