One of the best of ways to learn python-typing is to annotate the code. In this repo, koans directory contains a set of files which will teach you pyt

python-typing-koans by kracekumar

submited by
Style Pass
2021-05-14 15:01:00

One of the best of ways to learn python-typing is to annotate the code. In this repo, koans directory contains a set of files which will teach you python type-hints by fixing errors. The files carry a suffix from 100 in the increasing order. By solving errors in the each file in the increasing suffix order, you will gain knowledge about Python hints. It starts with simple variable annotation and covers topics function annotation, generics, protocols, classes.

The existing files has no annotations or wrong annotation, as a learner, you run one file and fix each errors till there are no type-errors. In the next section, you will learn, how to list all koans and how to run the modified koan file.

Leave a Comment