Skip to content

Commit

Permalink
Do not deprecate object_info as this is used elsewhere
Browse files Browse the repository at this point in the history
We might decide to deprecate it separately in another PR
  • Loading branch information
krassowski committed Feb 19, 2024
1 parent 70978dc commit 6154002
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions IPython/core/oinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6154002

Please sign in to comment.