From c4a43c3f527a61e78c4cff2c32e6e171ff610fd3 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 13 Oct 2022 15:44:46 +0100 Subject: [PATCH] s/Mypy/mypy/ --- docs/guide/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/app.md b/docs/guide/app.md index 3ed44fae2..9cea67855 100644 --- a/docs/guide/app.md +++ b/docs/guide/app.md @@ -141,7 +141,7 @@ You may have noticed that we subclassed `App[str]` rather than the usual `App`. --8<-- "docs/examples/app/question01.py" ``` -The addition of `[str]` tells Mypy that `run()` is expected to return a string. It may also return `None` if [App.exit()][textual.app.App.exit] is called without a return value, so the return type of `run` will be `str | None`. Replace the `str` in `[str]` with the type of the value you intend to call the exit method with. +The addition of `[str]` tells mypy that `run()` is expected to return a string. It may also return `None` if [App.exit()][textual.app.App.exit] is called without a return value, so the return type of `run` will be `str | None`. Replace the `str` in `[str]` with the type of the value you intend to call the exit method with. !!! note