darglint fix
This commit is contained in:
parent
732fdb8366
commit
0c8f1581ae
@ -3494,6 +3494,12 @@ class StateManagerRedis(StateManager):
|
|||||||
Args:
|
Args:
|
||||||
lock_warning_threshold: The lock warning threshold.
|
lock_warning_threshold: The lock warning threshold.
|
||||||
values: The validated attributes.
|
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"]):
|
if lock_warning_threshold >= (lock_expiration := values["lock_expiration"]):
|
||||||
raise InvalidLockWarningThresholdError(
|
raise InvalidLockWarningThresholdError(
|
||||||
|
Loading…
Reference in New Issue
Block a user