darglint fix

This commit is contained in:
Elijah 2024-12-12 11:06:04 +00:00
parent 732fdb8366
commit 0c8f1581ae

View File

@ -3494,6 +3494,12 @@ class StateManagerRedis(StateManager):
Args:
lock_warning_threshold: The lock warning threshold.
values: The validated attributes.
Returns:
The lock warning threshold.
Raises:
InvalidLockWarningThresholdError: If the lock warning threshold is invalid.
"""
if lock_warning_threshold >= (lock_expiration := values["lock_expiration"]):
raise InvalidLockWarningThresholdError(