Added typehint to search method