From 78cddc90f1c3db16becea6b1cfb29ed1cbe678b7 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Tue, 7 Jan 2025 11:08:42 +0100 Subject: [PATCH] pmb.qemu.run: Remove FIXME and type ignore stuff from command_qemu() (MR 2522) This was probably fixed by 225d8b30a01c03b07b8a00612ddc6dd002ad6fd0 as it added an Env type hint to the env variable. Either way, the mypy check passes evenn with this removed now. --- pmb/qemu/run.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index e6ca8956..0e78fb1a 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -164,13 +164,12 @@ def command_qemu( if "gtk" in args.qemu_display: gdk_cache = create_gdk_loader_cache(args) - # FIXME: why does mypy think the values here should all be paths?? env.update( { - "GTK_THEME": "Default", # type: ignore[dict-item] - "GDK_PIXBUF_MODULE_FILE": str(gdk_cache), # type: ignore[dict-item] + "GTK_THEME": "Default", + "GDK_PIXBUF_MODULE_FILE": str(gdk_cache), "XDG_DATA_DIRS": ":".join( - [ # type: ignore[dict-item] + [ str(chroot_native / "usr/local/share"), str(chroot_native / "usr/share"), ]