From 0b41ce879dff01da1ce3a1d23d3d952e792d8e44 Mon Sep 17 00:00:00 2001 From: Shahrokh Bahtooei <42028078+ShahrokhBahtooei@users.noreply.github.com> Date: Fri, 30 Oct 2020 10:55:44 +0330 Subject: [PATCH] Correct type hint @ split_into_first_and_last_name The return type hint for the refactored function split_into_first_and_last_name mistakenly is set to None, which instead should be either "list" or "List[str]." --- docs/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/functions.md b/docs/functions.md index f489c61..dfbc8f0 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -235,7 +235,7 @@ split_into_first_and_last_name() **Good:** ```python -def split_into_first_and_last_name(name: str) -> None: +def split_into_first_and_last_name(name: str) -> list: return name.split() name = 'Ryan McDermott'