-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
return result at pos2 should be removed as:
- docstring at pos1 claims return
None - the use of 'return' inside a 'finally' clause is not supported in Python version 3.14
resultis a global viriable and is not used directly in this function
async def toast_async(...):
"""
Notify
Args:
...
Returns:
None <-- pos1
"""
...
try:
_, pending = await asyncio.wait(futures, return_when=asyncio.FIRST_COMPLETED)
for p in pending:
p.cancel()
finally:
if activated_token is not None:
notification.remove_activated(activated_token)
if dismissed_token is not None:
notification.remove_dismissed(dismissed_token)
if failed_token is not None:
notification.remove_failed(failed_token)
return result <-- pos2Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels