MCPcopy Create free account
hub / github.com/bpython/bpython / __init__

Method __init__

bpython/curtsiesfrontend/interpreter.py:49–56  ·  view source on GitHub ↗
(
        self,
        color_scheme: dict[_TokenType, str],
        **options: str | bool | None,
    )

Source from the content-addressed store, hash-verified

47 straightforward."""
48
49 def __init__(
50 self,
51 color_scheme: dict[_TokenType, str],
52 **options: str | bool | None,
53 ) -> None:
54 self.f_strings = {k: f"\x01{v}" for k, v in color_scheme.items()}
55 # FIXME: mypy currently fails to handle this properly
56 super().__init__(**options) # type: ignore
57
58 def format(self, tokensource, outfile):
59 o = ""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected