Added typehints

see #612