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 38c8d94 commit 9c216a9Copy full SHA for 9c216a9
type-hint-arrow-samples/mismatched_return_type_example.py
@@ -1,6 +1,7 @@
1
-def get_number_of_titles(titles: list) -> str:
+def get_number_of_titles(titles: list[str]) -> str:
2
return len(titles)
3
4
5
games = ["Dragon Quest", "Final Fantasy", "Age of Empires"]
6
print(f"Number of titles: {get_number_of_titles(games)}")
7
+
0 commit comments