Skip to content

Commit

Permalink
[#23] fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
zmumi committed May 4, 2024
1 parent b843f28 commit e9250b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memoize/statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def mark_update_aborted(self, key: CacheKey, exception: Exception) -> None:
update = self._updates_in_progress.pop(key)
update.set_result(exception)

def await_updated(self, key: CacheKey) -> Awaitable[Union[CacheEntry | Exception]]:
def await_updated(self, key: CacheKey) -> Awaitable[Union[CacheEntry, Exception]]:
"""Waits (asynchronously) until update in progress has benn finished.
Returns awaitable with the updated entry
(or awaitable with an exception if update failed/timed-out).
Expand Down

0 comments on commit e9250b8

Please sign in to comment.