Fix reflection function typehint