Skip to content

Commit 38280e0

Browse files
refactor: change Callable to Awaitable for a cleaner and most readable syntax
1 parent 7647835 commit 38280e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

juju/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import zipfile
1010
from collections import defaultdict
1111
from pathlib import Path
12-
from typing import Any, Callable, Coroutine
12+
from typing import Any, Awaitable, Callable
1313

1414
import yaml
1515
from pyasn1.codec.der.encoder import encode
@@ -145,7 +145,7 @@ async def _block():
145145

146146

147147
async def block_until_with_coroutine(
148-
condition_coroutine: Callable[[], Coroutine[Any, Any, bool]],
148+
condition_coroutine: Callable[[], Awaitable[bool]],
149149
timeout: float | None = None,
150150
wait_period: float = 0.5,
151151
):

0 commit comments

Comments
 (0)