Skip to content

Commit a8d5b29

Browse files
bites 203 - fix type hinting
1 parent de485f1 commit a8d5b29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

203/type_hinting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class Employee:
1313
"""
1414
first_name: str
1515
last_name: str
16-
days_per_week: str
16+
days_per_week: int
1717
hours_per_day: float
1818
wage : float
1919

20-
def __init__(self, first_name:str, last_name:str, days_per_week:int,
21-
hours_per_day:float, wage:float):
20+
def __init__(self, first_name, last_name, days_per_week,
21+
hours_per_day, wage):
2222
self.first_name = first_name
2323
self.last_name = last_name
2424
self.days_per_week = days_per_week
@@ -28,7 +28,7 @@ def __init__(self, first_name:str, last_name:str, days_per_week:int,
2828
number: float
2929
places: int
3030

31-
def _rounder(self, number:float, places:int) -> str:
31+
def _rounder(self, number, places) -> str:
3232
"""Rounds a number the specified number of places
3333
3434
:param number: Float of number of round

0 commit comments

Comments
 (0)