Typehint is wrong