ThePrimeagen / kata-machine

1.28k stars 1.27k forks source link

Kata Machine in Python with new type hint builtin types, generics and unittest #81

Open edblancas opened 2 months ago

edblancas commented 2 months ago

I know someone shared a repository in python, but this is different, is a version with the new type hints in python, the use of the new form or specify generics and the use of unittest internal module.

No need for additional tools, just the latest version, I'm running with Python 3.12.5, and for checking the type hints MyPy 1.112 with the --enable-incomplete-feature=NewGenericSyntax flag.

I tried to complete clone all the files from the repo, including the types used. Also added some problems that were not solved but mentioned. The names are the same but instead of camel case, I used snake case, so you can search the same files.

The solutions have a lot of comments that maybe not relevant for you, I plan on clean them up and create a branch for the solutions and the main will only have the skeletons.

Also aded the part2 of the course, but I yet need to add the solutions and tests.

https://github.com/edblancas/kata-machine