diff --git a/IPython/core/compilerop.py b/IPython/core/compilerop.py index bffac9c..228f705 100644 --- a/IPython/core/compilerop.py +++ b/IPython/core/compilerop.py @@ -191,5 +191,9 @@ def check_linecache_ipython(*args): """ import warnings - warnings.warn("Just call linecache.checkcache() directly.", DeprecationWarning) + warnings.warn( + "Deprecated Since IPython 8.6, Just call linecache.checkcache() directly.", + DeprecationWarning, + stacklevel=2, + ) linecache.checkcache()