@@ -41,7 +41,7 @@ them later)::
4141 '2000': threepio, '2001': artoo}
4242
4343
44- def get_character_type(character, info ):
44+ def get_character_type(character, _info, _type ):
4545 return 'Droid' if character['id'] in droid_data else 'Human'
4646
4747
@@ -50,29 +50,29 @@ them later)::
5050 return human_data.get(id) or droid_data.get(id)
5151
5252
53- def get_friends(character, info ):
53+ def get_friends(character, _info ):
5454 """Allows us to query for a character's friends."""
5555 return map(get_character, character.friends)
5656
5757
58- def get_hero(root, info , episode):
58+ def get_hero(root, _info , episode):
5959 """Allows us to fetch the undisputed hero of the trilogy, R2-D2."""
6060 if episode == 5:
6161 return luke # Luke is the hero of Episode V
6262 return artoo # Artoo is the hero otherwise
6363
6464
65- def get_human(root, info , id):
65+ def get_human(root, _info , id):
6666 """Allows us to query for the human with the given id."""
6767 return human_data.get(id)
6868
6969
70- def get_droid(root, info , id):
70+ def get_droid(root, _info , id):
7171 """Allows us to query for the droid with the given id."""
7272 return droid_data.get(id)
7373
7474
75- def get_secret_backstory(character, info ):
75+ def get_secret_backstory(_character, _info ):
7676 """Raise an error when attempting to get the secret backstory."""
7777 raise RuntimeError('secretBackstory is secret.')
7878
0 commit comments