PGH003: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 21:14:33 +02:00
parent cbf9678534
commit 8f8426de52
29 changed files with 212 additions and 102 deletions

View File

@@ -74,7 +74,7 @@ class ErrorToast:
views = ViewStack.use().view
# we cannot check this type, python is not smart enough
logs_view: Logs = views.get_child_by_name("logs") # type: ignore
logs_view: Logs = views.get_child_by_name("logs") # type: ignore[assignment]
logs_view.set_message(details)
self.toast.connect(

View File

@@ -125,7 +125,7 @@ class ClanStore:
def log_details(self, vm: VMObject, gfile: Gio.File) -> None:
views = ViewStack.use().view
logs_view: Logs = views.get_child_by_name("logs") # type: ignore
logs_view: Logs = views.get_child_by_name("logs") # type: ignore[assignment]
def file_read_callback(
source_object: Gio.File,