We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e8349 commit c243869Copy full SHA for c243869
mautrix/util/simple_lock.py
@@ -36,7 +36,7 @@ def __aexit__(self, exc_type, exc_val, exc_tb) -> None:
36
def locked(self) -> bool:
37
return not self._event.is_set()
38
39
- async def wait(self, task: Optional[str] = None) -> None:
+ async def wait(self, task: str | None = None) -> None:
40
if not self._event.is_set():
41
if self.log and self.message:
42
self.log.debug(self.message, task)
0 commit comments