MCPcopy
hub / github.com/scrapy/scrapy / _repr_pretty_

Method _repr_pretty_

scrapy/settings/__init__.py:688–692  ·  view source on GitHub ↗
(self, p: Any, cycle: bool)

Source from the content-addressed store, hash-verified

686
687 # https://ipython.readthedocs.io/en/stable/config/integrating.html#pretty-printing
688 def _repr_pretty_(self, p: Any, cycle: bool) -> None:
689 if cycle:
690 p.text(repr(self))
691 else:
692 p.text(pformat(self.copy_to_dict()))
693
694 def pop(self, name: _SettingsKey, default: Any = __default) -> Any: # pylint: disable=arguments-renamed
695 try:

Callers

nothing calls this directly

Calls 3

copy_to_dictMethod · 0.95
pformatFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected