I think that it would be useful to raise this warning with stacklevel=2 (at least, maybe more).