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

Method get

sphinx/ext/napoleon/docstring.py:67–71  ·  view source on GitHub ↗

Return the nth element of the stack, or ``self.sentinel`` if n is greater than the stack size.

(self, n: int)

Source from the content-addressed store, hash-verified

65 sentinel = object()
66
67 def get(self, n: int) -> Any:
68 """Return the nth element of the stack, or ``self.sentinel`` if n is
69 greater than the stack size.
70 """
71 return self[n] if n < len(self) else self.sentinel
72
73 def next(self) -> Any:
74 if self:

Callers 15

__init__Method · 0.45
_read_conf_pyFunction · 0.45
warningFunction · 0.45
code_roleFunction · 0.45
child_text_separatorMethod · 0.45
get_configMethod · 0.45
_validate_theme_tomlFunction · 0.45
_convert_theme_tomlFunction · 0.45
_validate_theme_confFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_docMethod · 0.36