Removed typehint in transformer because it was not compatible with parent function