Skip to content

Commit 2d43c10

Browse files
authored
Update str_return_type_hint_example.py
1 parent 5a6b4b7 commit 2d43c10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

type_hint_arrow_samples/str_return_type_hint_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import random
22

33

4-
def get_game_recommendation(list) -> str:
5-
return random.choice(list)
4+
def get_game_recommendation(titles: list) -> str:
5+
return random.choice(titles)
66

77

88
game_titles_list = ["Dragon Quest", "Final Fantasy", "Age of Empires"]

0 commit comments

Comments
 (0)