MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _QueryReference

Class _QueryReference

lib/matplotlib/sphinxext/roles.py:46–57  ·  view source on GitHub ↗

Wraps a reference or pending reference to add a query string. The query string is generated from the attributes added to this node. Also equivalent to a `~docutils.nodes.literal` node.

Source from the content-addressed store, hash-verified

44
45
46class _QueryReference(nodes.Inline, nodes.TextElement):
47 """
48 Wraps a reference or pending reference to add a query string.
49
50 The query string is generated from the attributes added to this node.
51
52 Also equivalent to a `~docutils.nodes.literal` node.
53 """
54
55 def to_query_string(self):
56 """Generate query string from node attributes."""
57 return '&'.join(f'{name}={value}' for name, value in self.attlist())
58
59
60def _visit_query_reference_node(self, node):

Callers 1

_rcparam_roleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…