COMPAT: ensure no warnings on tab completion with Jedi 0.15
Closes https://github.com/pandas-dev/pandas/issues/27900

I didn't yet add any tests, because I am not fully sure how to write them (the IPython tests we already have clearly don't work, I suppose the programmatic `ip.Completer.completions(..)` doesn't go through jedi)

