##// END OF EJS Templates
Put version next to Deprecation notice....
Matthias Bussonnier -
Show More
@@ -221,7 +221,7 b' def format_argspec(argspec):'
221 This takes a dict instead of ordered arguments and calls
221 This takes a dict instead of ordered arguments and calls
222 inspect.format_argspec with the arguments in the necessary order.
222 inspect.format_argspec with the arguments in the necessary order.
223
223
224 DEPRECATED: Do not use; will be removed in future versions.
224 DEPRECATED (since 7.10): Do not use; will be removed in future versions.
225 """
225 """
226
226
227 warnings.warn('`format_argspec` function is deprecated as of IPython 7.10'
227 warnings.warn('`format_argspec` function is deprecated as of IPython 7.10'
@@ -233,10 +233,13 b' def format_argspec(argspec):'
233
233
234 @undoc
234 @undoc
235 def call_tip(oinfo, format_call=True):
235 def call_tip(oinfo, format_call=True):
236 """DEPRECATED. Extract call tip data from an oinfo dict.
236 """DEPRECATED since 6.0. Extract call tip data from an oinfo dict."""
237 """
237 warnings.warn(
238 warnings.warn('`call_tip` function is deprecated as of IPython 6.0'
238 "`call_tip` function is deprecated as of IPython 6.0"
239 'and will be removed in future versions.', DeprecationWarning, stacklevel=2)
239 "and will be removed in future versions.",
240 DeprecationWarning,
241 stacklevel=2,
242 )
240 # Get call definition
243 # Get call definition
241 argspec = oinfo.get('argspec')
244 argspec = oinfo.get('argspec')
242 if argspec is None:
245 if argspec is None:
@@ -701,9 +704,8 b' class Inspector(Colorable):'
701 del info['text/html']
704 del info['text/html']
702 page.page(info)
705 page.page(info)
703
706
704 def info(self, obj, oname='', formatter=None, info=None, detail_level=0):
707 def info(self, obj, oname="", formatter=None, info=None, detail_level=0):
705 """DEPRECATED. Compute a dict with detailed information about an object.
708 """DEPRECATED since 5.0. Compute a dict with detailed information about an object."""
706 """
707 if formatter is not None:
709 if formatter is not None:
708 warnings.warn('The `formatter` keyword argument to `Inspector.info`'
710 warnings.warn('The `formatter` keyword argument to `Inspector.info`'
709 'is deprecated as of IPython 5.0 and will have no effects.',
711 'is deprecated as of IPython 5.0 and will have no effects.',
General Comments 0
You need to be logged in to leave comments. Login now