Skip to content

Commit 611c259

Browse files
committed
Add missing type annotation for previous_last_names
1 parent e524c39 commit 611c259

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prep_exercise/9_inheritance.py

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

1717
def change_last_name(self, last_name) -> None:
1818
self.previous_last_names.append(self.last_name)

0 commit comments

Comments
 (0)