fix: clear typehinting errors

This commit is contained in:
aclist 2026-08-18 18:26:42 +09:00 committed by GitHub
parent 1e073af27a
commit 0ebc25b3b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,10 +252,10 @@ class ExceptionDialog(GenericDialog):
self.connect("response", self._on_response)
def _on_page_changed(
self, notebook: Gtk.Notebook, child: Gtk.Widget, index: int
self, notebook: Gtk.Notebook, child: Gtk.Box | Gtk.ScrolledWindow, index: int
) -> None:
if child == self.error_details:
child.set_propagate_natural_height(True)
self.error_details.set_propagate_natural_height(True)
else:
self.error_details.set_propagate_natural_height(False)