MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Doc/tools/extensions/grammar_snippet.py:27–36  ·  view source on GitHub ↗
(
        self,
        rawsource: str = '',
        text: str = '',
        *children: Node,
        **attributes: Any,
    )

Source from the content-addressed store, hash-verified

25 """Node for a string literal in a grammar snippet."""
26
27 def __init__(
28 self,
29 rawsource: str = '',
30 text: str = '',
31 *children: Node,
32 **attributes: Any,
33 ) -> None:
34 super().__init__(rawsource, text, *children, **attributes)
35 # Use the Pygments highlight class for `Literal.String.Other`
36 self['classes'].append('sx')
37
38
39class GrammarSnippetBase(SphinxDirective):

Callers

nothing calls this directly

Calls 2

superClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected