1from typing import cast 2 3 4def calculate_sleep(backoff_factor: int) -> int: 5 sleep_length = 1 * (2 ** (backoff_factor - 1)) 6 return cast(int, sleep_length)
5def calculate_sleep(backoff_factor: int) -> int: 6 sleep_length = 1 * (2 ** (backoff_factor - 1)) 7 return cast(int, sleep_length)