Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
gmega committed Dec 20, 2024
1 parent 59f3a9a commit 0fa4f99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmarks/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):


def await_predicate(
predicate: Callable[[], bool], timeout: float = 0, polling_interval: float = 0
predicate: Callable[[], bool], timeout: float = 0, polling_interval: float = 0
) -> bool:
current = time()
while (timeout == 0) or ((time() - current) <= timeout):
Expand Down Expand Up @@ -79,7 +79,9 @@ def megabytes(n: int) -> int:


@contextmanager
def temp_random_file(size: int, name: str = "data.bin", batch_size: int = megabytes(50)):
def temp_random_file(
size: int, name: str = "data.bin", batch_size: int = megabytes(50)
):
with tempfile.TemporaryDirectory() as temp_dir_str:
temp_dir = Path(temp_dir_str)
random_file = temp_dir / name
Expand Down

0 comments on commit 0fa4f99

Please sign in to comment.