PGH003: fix
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user