Add typehints

I added some typehints for less reflection usage in the compiled code