guide icon indicating copy to clipboard operation
guide copied to clipboard

Add information on type hints to Python chapter

Open bouweandela opened this issue 2 years ago • 2 comments

I noticed that there is no information on type hints in the Python chapter. Would you have time to add this @egpbos?

bouweandela avatar Nov 06 '23 11:11 bouweandela

Not right now. I also wouldn't know what in particular to add, because my experience with it is limited. However, I'm sure there are useful things to say about mypy, maybe pydantic, or other aspects. If somebody else wants to pick this up, feel free!

egpbos avatar Nov 07 '23 14:11 egpbos

Yeah for type hints! Especially the automated tools can be (more) helpful if you provide some hints. If you don't want to go all-out with hints, it still makes sense to add them to the public API of your code, to help others re-use it. Adding an intro to type hints with some background is here

jiskattema avatar Nov 07 '23 15:11 jiskattema