In `DataFrame.transform`, all `str`'s are accepted by the stubs at the moment. After #1672, we can switch to a `Literal` to restrict the input, and also a few negative tests in `TYPE_CHECKING_INVALID_USAGE`. _Originally posted by @cmp0xff in https://github.com/pandas-dev/pandas-stubs/pull/1672#discussion_r2805020585_