mirror of
https://github.com/samschott/maestral.git
synced 2024-09-22 11:27:35 +03:00
[notify] stronger typing of buttons
This commit is contained in:
parent
e901d284e2
commit
3c02655184
@ -64,7 +64,7 @@ class DesktopNotifier:
|
||||
urgency: NotificationLevel = NotificationLevel.Normal,
|
||||
icon: Optional[str] = None,
|
||||
action: Optional[Callable] = None,
|
||||
buttons: Optional[Dict[str, Optional[Callable]]] = None,
|
||||
buttons: Optional[Dict[str, Callable]] = None,
|
||||
) -> None:
|
||||
"""
|
||||
Sends a desktop notification. Some arguments may be ignored, depending on the
|
||||
@ -166,7 +166,7 @@ class MaestralDesktopNotifier:
|
||||
message: str,
|
||||
level: int = FILECHANGE,
|
||||
on_click: Optional[Callable] = None,
|
||||
buttons: Optional[Dict[str, Optional[Callable]]] = None,
|
||||
buttons: Optional[Dict[str, Callable]] = None,
|
||||
) -> None:
|
||||
"""
|
||||
Sends a desktop notification.
|
||||
|
@ -54,7 +54,7 @@ class Notification:
|
||||
urgency: NotificationLevel = NotificationLevel.Normal,
|
||||
icon: Optional[str] = None,
|
||||
action: Optional[Callable] = None,
|
||||
buttons: Optional[Dict[str, Optional[Callable]]] = None,
|
||||
buttons: Optional[Dict[str, Callable]] = None,
|
||||
) -> None:
|
||||
|
||||
self.title = title
|
||||
|
Loading…
Reference in New Issue
Block a user