avatar Bite 203. Type hinting practice

It's time for some type hinting!

For this bite, you have been provided a very simple Employee class object. I was going to have you complete it yourself but since this bite is all about type hinting you have been given some working code. Too easy, you say?

Tasks to complete:

Just add type hinting to the code. The tests have been hidden in order to encourage you to learn.

Final Note

This is also the perfect opportunity to get you to start using the new dataclasses module and specifically the new @dataclass decorator, so make sure to use those for this project.

Have fun!

Login and get coding
go back Intermediate level
Bitecoin 3X

129 out of 143 users completed this Bite.
Will you be the 130th person to crack this Bite?
Resolution time: ~31 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 1.88 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help