Backport PR #50544 on branch 1.5.x (CI fix typing with latest ipython)
Backport PR #50544: CI fix typing with latest ipython
cc @MarcoGorelli Seems to be another typing failure the IPython and traitlets versions are the same on the 1.5.x branch, don't know why this is failing here but not on main, I can only put it down to it being a different mypy version. OK to `type: ignore`? Ok by me This might be failing on main https://github.com/pandas-dev/pandas/actions/runs/3838014340/jobs/6533977845 yes, indeed - let's keep this to the first fix, and then backport https://github.com/pandas-dev/pandas/pull/50562 too?
/