Skip to content

Commit

Permalink
refactor: change Callable to Awaitable for a cleaner and most readabl…
Browse files Browse the repository at this point in the history
…e syntax
  • Loading branch information
EdmilsonRodrigues committed Dec 16, 2024
1 parent 7647835 commit 38280e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juju/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import zipfile
from collections import defaultdict
from pathlib import Path
from typing import Any, Callable, Coroutine
from typing import Any, Awaitable, Callable

import yaml
from pyasn1.codec.der.encoder import encode
Expand Down Expand Up @@ -145,7 +145,7 @@ async def _block():


async def block_until_with_coroutine(
condition_coroutine: Callable[[], Coroutine[Any, Any, bool]],
condition_coroutine: Callable[[], Awaitable[bool]],
timeout: float | None = None,
wait_period: float = 0.5,
):
Expand Down

0 comments on commit 38280e0

Please sign in to comment.