From 7d7aafeb7aec71eebef5e3e1ec1007d10a9a32ea Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 31 Oct 2024 19:38:10 +0100 Subject: bump python version, install used imports and ignore types for pydbus --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index c7a78d0..cd86330 100755 --- a/main.py +++ b/main.py @@ -70,8 +70,9 @@ def single_shot(bot: Geldschieberbot, send_cmd: str, no_quote: bool): def dbus_loop(bot: Geldschieberbot, send_cmd: str, no_quote: bool): """Handle all messages read from stdin and run scheduled commands""" - from pydbus import SessionBus - from gi.repository import GLib, GObject + from pydbus import SessionBus # type: ignore + from gi.repository import GLib + from base64 import b64encode bus = SessionBus() loop = GLib.MainLoop() @@ -109,7 +110,7 @@ def dbus_loop(bot: Geldschieberbot, send_cmd: str, no_quote: bool): bot.save_state() return True - GObject.timeout_add_seconds(30, run_scheduled_cmds) + GLib.timeout_add_seconds(30, run_scheduled_cmds) loop.run() -- cgit v1.2.3