Skip to content

Commit 93c6d7c

Browse files
committed
Fix BasePage comments
1 parent cf24214 commit 93c6d7c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sdk/python/packages/flet/src/flet/controls/base_page.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ def show_dialog(self, dialog: DialogControl) -> None:
303303
"""
304304
Displays a dialog and manages its dismissal lifecycle.
305305
306-
This method adds the specified `DialogControl` to the active dialog stack
306+
This method adds the specified `dialog` to the active dialog stack
307307
and renders it on the page. If the dialog is already open, an exception
308308
is raised.
309309
The `on_dismiss` handler of the dialog is temporarily wrapped to ensure the
310310
dialog is removed from the stack and its dismissal event is triggered
311311
appropriately.
312312
313313
Args:
314-
dialog (DialogControl):
314+
dialog:
315315
The dialog instance to display. Must not already be open.
316316
317317
Raises:
@@ -350,8 +350,7 @@ def pop_dialog(self) -> Optional[DialogControl]:
350350
and returns the closed dialog.
351351
352352
Returns:
353-
Optional[DialogControl]:
354-
The closed dialog instance if one was found, otherwise `None`.
353+
The closed dialog instance if one was found, otherwise `None`.
355354
"""
356355
dialog = next(
357356
(dlg for dlg in reversed(self._dialogs.controls) if dlg.open), None

0 commit comments

Comments
 (0)