Advent of Code 2021
The PuPPy slack channel had a group of people doing Advent of Code, and I did it again this year.
My repo is here
The PuPPy slack channel had a group of people doing Advent of Code, and I did it again this year.
My repo is here
Type hints were my New Year’s Resolution for 2021 and I’ve learned a lot this year.
Whatever you want to know about typing, try to find it in the mypy documentation, not by googling. Typing has been evolving and continues to evolve, and anything you don’t find by checking the current docs is quite likely out of date.
What mypy catches for me:
Optional
and then forget
to have a None
code path? You did, didn’t you…# type: ignore
is nothing to be ashamed of, IMHO. Especially if the problem is localized
to a screenful of code that can be checked by inspection.