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

Method __init__

bpython/formatter.py:105–115  ·  view source on GitHub ↗
(
        self, color_scheme: MutableMapping[str, str], **options: Any
    )

Source from the content-addressed store, hash-verified

103 straightforward."""
104
105 def __init__(
106 self, color_scheme: MutableMapping[str, str], **options: Any
107 ) -> None:
108 self.f_strings = {}
109 for k, v in theme_map.items():
110 self.f_strings[k] = f"\x01{color_scheme[v]}"
111 if k is Parenthesis:
112 # FIXME: Find a way to make this the inverse of the current
113 # background colour
114 self.f_strings[k] += "I"
115 super().__init__(**options)
116
117 def format(
118 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected