From 6154002c46c92b0b8750930cc4411ceaf1facc8d 2024-02-19 21:49:30 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: 2024-02-19 21:49:30 Subject: [PATCH] Do not deprecate `object_info` as this is used elsewhere We might decide to deprecate it separately in another PR --- diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index e6802e4..53221a5 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -145,12 +145,7 @@ class InspectorHookData: @undoc def object_info(**kw): - """DEPRECATED: Make an object info dict with all fields present.""" - warnings.warn( - "IPython.core.oinspect.object_info has been deprecated since IPython 8.22 and will be removed in future versions", - DeprecationWarning, - stacklevel=2, - ) + """Make an object info dict with all fields present.""" infodict = {k: None for k in info_fields} infodict.update(kw) return infodict