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

Method __init__

bpython/patch_linecache.py:9–16  ·  view source on GitHub ↗
(
        self,
        bpython_history: None | (list[tuple[int, None, list[str], str]]) = None,
        *args,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

7 to also remember (in an unerasable way) bpython console input."""
8
9 def __init__(
10 self,
11 bpython_history: None | (list[tuple[int, None, list[str], str]]) = None,
12 *args,
13 **kwargs,
14 ) -> None:
15 super().__init__(*args, **kwargs)
16 self.bpython_history = bpython_history or []
17
18 def is_bpython_filename(self, fname: Any) -> bool:
19 return isinstance(fname, str) and fname.startswith("<bpython-input-")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected