We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8abe4 commit c13c9d7Copy full SHA for c13c9d7
type-hint-arrow-samples/none_return_type_hint_example.py
@@ -1,4 +1,4 @@
1
-def find_keyword_in_titles(titles: list, keyword: str) -> None:
+def find_keyword_in_titles(titles: list[str], keyword: str) -> None:
2
print(f"Titles that contain the keyword {keyword}")
3
for game_title in titles:
4
if keyword in game_title:
@@ -7,3 +7,4 @@ def find_keyword_in_titles(titles: list, keyword: str) -> None:
7
8
games = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
9
find_keyword_in_titles(games, "Final")
10
+
0 commit comments