REF: tighten types in maybe_downcast_numeric, maybe_downcast_to_dtype (#40087)
REF: tighten types in maybe_downcast_numeric, maybe_downcast_to_dtype (#40087)


pandas-dev/pandas,gfyoung/pandas,dsm054/pandas,rs2/pandas,gfyoung/pandas,jorisvandenbossche/pandas,dsm054/pandas,datapythonista/pandas,jorisvandenbossche/pandas,datapythonista/pandas,jorisvandenbossche/pandas,pandas-dev/pandas,pandas-dev/pandas,datapythonista/pandas,rs2/pandas,dsm054/pandas,datapythonista/pandas,rs2/pandas,dsm054/pandas,pandas-dev/pandas,gfyoung/pandas,gfyoung/pandas,dsm054/pandas,gfyoung/pandas,jorisvandenbossche/pandas,rs2/pandas