Show More
@@ -588,7 +588,7 b' class Inspector(Colorable):' | |||||
588 | Titles or keys to omit from output (can be set, tuple, etc., anything supporting `in`) |
|
588 | Titles or keys to omit from output (can be set, tuple, etc., anything supporting `in`) | |
589 | """ |
|
589 | """ | |
590 |
|
590 | |||
591 |
info = self. |
|
591 | info = self.info(obj, oname=oname, info=info, detail_level=detail_level) | |
592 |
|
592 | |||
593 | _mime = { |
|
593 | _mime = { | |
594 | 'text/plain': [], |
|
594 | 'text/plain': [], | |
@@ -702,15 +702,22 b' class Inspector(Colorable):' | |||||
702 | del info['text/html'] |
|
702 | del info['text/html'] | |
703 | page.page(info) |
|
703 | page.page(info) | |
704 |
|
704 | |||
705 |
def info(self, obj, oname="", |
|
705 | def _info(self, obj, oname="", info=None, detail_level=0): | |
706 | """DEPRECATED since 5.0. Compute a dict with detailed information about an object.""" |
|
706 | """ | |
707 | if formatter is not None: |
|
707 | Inspector.info() was likely unproperly marked as deprecated | |
708 | warnings.warn('The `formatter` keyword argument to `Inspector.info`' |
|
708 | while only a parameter was deprecated. We "un-deprecate" it. | |
709 | 'is deprecated as of IPython 5.0 and will have no effects.', |
|
709 | """ | |
710 | DeprecationWarning, stacklevel=2) |
|
710 | ||
711 | return self._info(obj, oname=oname, info=info, detail_level=detail_level) |
|
711 | warnings.warn( | |
|
712 | "The `Inspector.info()` has been un-deprecated as of 8.0 and the" | |||
|
713 | " `formatter=` keyword removed. `Inspector._info` is now an alias." | |||
|
714 | " You can always call `.info()` directly.", | |||
|
715 | DeprecationWarning, | |||
|
716 | stacklevel=2, | |||
|
717 | ) | |||
|
718 | return self.info(obj, oname=oname, info=info, detail_level=detail_level) | |||
712 |
|
719 | |||
713 |
def |
|
720 | def info(self, obj, oname="", info=None, detail_level=0) -> dict: | |
714 | """Compute a dict with detailed information about an object. |
|
721 | """Compute a dict with detailed information about an object. | |
715 |
|
722 | |||
716 | Parameters |
|
723 | Parameters |
General Comments 0
You need to be logged in to leave comments.
Login now