Skip to content

Commit 203148c

Browse files
committed
Fix var type annotation
1 parent 2cd708e commit 203148c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sprint5-prep/prep9-exercise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get_name(self) -> str:
1010
class Child(Parent):
1111
def __init__(self, first_name: str, last_name: str):
1212
super().__init__(first_name, last_name)
13-
self.previous_last_names = []
13+
self.previous_last_names: list[str] = []
1414

1515
def change_last_name(self, last_name) -> None:
1616
self.previous_last_names.append(self.last_name)

0 commit comments

Comments
 (0)