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

Function sig_elements

tests/test_addnodes.py:16–20  ·  view source on GitHub ↗

Fixture returning the current ``addnodes.SIG_ELEMENTS`` set.

()

Source from the content-addressed store, hash-verified

14
15@pytest.fixture
16def sig_elements() -> Iterator[set[type[addnodes.desc_sig_element]]]:
17 """Fixture returning the current ``addnodes.SIG_ELEMENTS`` set."""
18 original = addnodes.SIG_ELEMENTS.copy() # safe copy of the current nodes
19 yield {*addnodes.SIG_ELEMENTS} # temporary value to use during tests
20 addnodes.SIG_ELEMENTS = original # restore the previous value
21
22
23def test_desc_sig_element_nodes(

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…