Skip to content

Commit e202f6f

Browse files
committed
Add missing type hints
1 parent e96896e commit e202f6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,11 @@ print(new_name) # ['Ryan', 'McDermott']
577577
class Person:
578578
name: str
579579

580-
def __init__(self, name):
580+
def __init__(self, name: str):
581581
self.name = name
582582

583583
@property
584-
def name_as_first_and_last(self):
584+
def name_as_first_and_last(self) -> list:
585585
return self.name.split()
586586

587587
person = Person('Ryan McDermott')

0 commit comments

Comments
 (0)