Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information on type hints to Python chapter #310

Open
bouweandela opened this issue Nov 6, 2023 · 2 comments · May be fixed by #359
Open

Add information on type hints to Python chapter #310

bouweandela opened this issue Nov 6, 2023 · 2 comments · May be fixed by #359

Comments

@bouweandela
Copy link
Member

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

@egpbos
Copy link
Member

egpbos commented Nov 7, 2023

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!

@jiskattema
Copy link

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

egpbos added a commit that referenced this issue Oct 21, 2024
Added a subsection on type hints, following the discussion in #310. Also added a few cool libraries, e.g. FastAPI that was mentioned by Bouwe in #54 and Typer from the same author.

Fixes #310.
@egpbos egpbos linked a pull request Oct 21, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants