diff --git a/CHANGELOG.md b/CHANGELOG.md index 7816eba..6808431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Next version + +### ⚙️ Engineering + +* Improved typing of `with_timeout` function. + + ## 0.5.5 - December 27, 2024 ### 🔧 Fixed diff --git a/src/lvmopstools/utils.py b/src/lvmopstools/utils.py index 20e3406..1ba614a 100644 --- a/src/lvmopstools/utils.py +++ b/src/lvmopstools/utils.py @@ -107,7 +107,7 @@ def is_notebook() -> bool: async def with_timeout( - coro: Coroutine[Any, Any, T], + coro: asyncio.Future[T] | Coroutine[Any, Any, T], timeout: float | None, raise_on_timeout: bool = True, ) -> T | None: