mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 22:31:43 +03:00
Clarify a comment
"optional" is ambiguous, between optional arguments (i.e. parameters with a default value), and a union with `None` (i.e. `Optional`, or `| None`)
This commit is contained in:
parent
cbcf22c4d7
commit
4fc5a6e8e5
@ -647,7 +647,7 @@ class MessageBox(DialogWindow):
|
|||||||
*children: Widget,
|
*children: Widget,
|
||||||
message: Widget | str,
|
message: Widget | str,
|
||||||
button_types: str = "ok",
|
button_types: str = "ok",
|
||||||
icon_widget: Widget | None, # not optional because I'm more likely to forget to pass it than to want no icon
|
icon_widget: Widget | None, # can be None but must be specified, because I'm more likely to forget to pass it than to want no icon
|
||||||
handle_button: Callable[[Button], None],
|
handle_button: Callable[[Button], None],
|
||||||
error: Exception | None = None,
|
error: Exception | None = None,
|
||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
|
Loading…
Reference in New Issue
Block a user