Skip to content

Commit c243869

Browse files
committed
Fix type hint in SimpleLock
1 parent 47e8349 commit c243869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/util/simple_lock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __aexit__(self, exc_type, exc_val, exc_tb) -> None:
3636
def locked(self) -> bool:
3737
return not self._event.is_set()
3838

39-
async def wait(self, task: Optional[str] = None) -> None:
39+
async def wait(self, task: str | None = None) -> None:
4040
if not self._event.is_set():
4141
if self.log and self.message:
4242
self.log.debug(self.message, task)

0 commit comments

Comments
 (0)