MCPcopy Create free account
hub / github.com/ipython/ipython / end_group

Method end_group

IPython/lib/pretty.py:288–295  ·  view source on GitHub ↗

End a group. See `begin_group` for more details.

(self, dedent=0, close='')

Source from the content-addressed store, hash-verified

286 yield idx, x
287
288 def end_group(self, dedent=0, close=''):
289 """End a group. See `begin_group` for more details."""
290 self.indentation -= dedent
291 group = self.group_stack.pop()
292 if not group.breakables:
293 self.group_queue.remove(group)
294 if close:
295 self.text(close)
296
297 def flush(self):
298 """Flush data that is left in the buffer."""

Callers 6

groupMethod · 0.80
prettyMethod · 0.80
_default_pprintFunction · 0.80
innerFunction · 0.80
_super_pprintFunction · 0.80
_exception_pprintFunction · 0.80

Calls 3

textMethod · 0.95
popMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected