Skip to content

Commit

Permalink
Improve typing of with_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 30, 2024
1 parent 18812db commit 50d7c8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Next version

### ⚙️ Engineering

* Improved typing of `with_timeout` function.


## 0.5.5 - December 27, 2024

### 🔧 Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/lvmopstools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 50d7c8a

Please sign in to comment.