mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-05 13:43:04 +03:00
Fix type signature
This commit is contained in:
parent
cd1161d454
commit
5f3a7f259d
@ -2872,7 +2872,7 @@ class PaintApp(App[None]):
|
|||||||
# An error message will be shown when attempting to encode.
|
# An error message will be shown when attempting to encode.
|
||||||
callback(False)
|
callback(False)
|
||||||
|
|
||||||
async def confirm_information_loss_async(self, format_id: str) -> Coroutine[None, None, bool]:
|
async def confirm_information_loss_async(self, format_id: str | None) -> Coroutine[None, None, bool]:
|
||||||
"""Confirms discarding information when saving as a particular format. Awaitable variant, which uses the callback variant."""
|
"""Confirms discarding information when saving as a particular format. Awaitable variant, which uses the callback variant."""
|
||||||
future = asyncio.get_running_loop().create_future()
|
future = asyncio.get_running_loop().create_future()
|
||||||
self.confirm_information_loss(format_id, lambda result: future.set_result(result))
|
self.confirm_information_loss(format_id, lambda result: future.set_result(result))
|
||||||
|
Loading…
Reference in New Issue
Block a user