In #1146 tried to get `StringMethods` to know that passing `Series[float]` (for example) is wrong. I got something to work for `Series` with `pyright` . See https://github.com/Dr-Irv/pandas-stubs/tree/pr1146 and this commit: https://github.com/pandas-dev/pandas-stubs/commit/164bc27185bf213fd7da942414bf2e2935bf8a1d Would like to add this to the stubs. But as noted here: https://github.com/pandas-dev/pandas-stubs/pull/1146#issuecomment-2713697759 it fails in `mypy` which seems to be due to https://github.com/python/mypy/issues/15921