Daniel Brötzmann pushed to branch win-native-notifications at gajim / gajim
Commits:
a382d681 by wurstsalat at 2024-06-23T14:04:59+02:00
cfix: Fix type stubs errors
- - - - -
2 changed files:
- typings/windows_toasts/__init__.pyi
- typings/windows_toasts/events.pyi
Changes:
=====================================
typings/windows_toasts/__init__.pyi
=====================================
@@ -12,6 +12,7 @@ from .toasters import InteractableWindowsToaster,
WindowsToaster
from .wrappers import ToastButton, ToastButtonColour, ToastDisplayImage,
ToastDuration, ToastImage, ToastImagePosition, ToastInputSelectionBox,
ToastInputTextBox, ToastProgressBar, ToastScenario, ToastSelection,
ToastSystemButton, ToastSystemButtonAction
MIN_VERSION = ...
-if platform.system() == "Windows" and osVersion :=
int(platform.version().split(".")[2]) < MIN_VERSION:
+osVersion = int(platform.version().split(".")[2])
+if platform.system() == "Windows" and osVersion < MIN_VERSION:
...
__all__ = ["__author__", "__description__", "__license__", "__title__",
"__url__", "__version__", "ToastActivatedEventArgs", "ToastDismissalReason",
"ToastDismissedEventArgs", "ToastFailedEventArgs", "InvalidImageException",
"ToastNotFoundError", "UnsupportedOSVersionException", "AudioSource",
"ToastAudio", "Toast", "InteractableWindowsToaster", "WindowsToaster",
"ToastButton", "ToastButtonColour", "ToastDisplayImage", "ToastDuration",
"ToastImage", "ToastImagePosition", "ToastInputSelectionBox",
"ToastInputTextBox", "ToastProgressBar", "ToastScenario", "ToastSelection",
"ToastSystemButton", "ToastSystemButtonAction"]
=====================================
typings/windows_toasts/events.pyi
=====================================
@@ -16,6 +16,7 @@ class ToastActivatedEventArgs:
@classmethod
def fromWinRt(cls, eventArgs: system.Object) -> ToastActivatedEventArgs:
...
-
-
+class ToastDismissalReason: ...
+class ToastDismissedEventArgs: ...
+class ToastFailedEventArgs: ...
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a382d681746faf041eaebc76379623ca952a36ae
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a382d681746faf041eaebc76379623ca952a36ae
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]