add typehint as per @stof's suggestion