MCPcopy
hub / github.com/sphinx-doc/sphinx / __repr__

Method __repr__

sphinx/config.py:424–432  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

422 )
423
424 def __repr__(self) -> str:
425 values = []
426 for opt_name in self._options:
427 try:
428 opt_value = getattr(self, opt_name)
429 except Exception:
430 opt_value = '<error!>'
431 values.append(f'{opt_name}={opt_value!r}')
432 return self.__class__.__qualname__ + '(' + ', '.join(values) + ')'
433
434 def __setattr__(self, key: str, value: object) -> None:
435 # Ensure aliases update their counterpart.

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected