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

Method is_bpython_filename

bpython/patch_linecache.py:18–19  ·  view source on GitHub ↗
(self, fname: Any)

Source from the content-addressed store, hash-verified

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-")
20
21 def get_bpython_history(self, key: str) -> tuple[int, None, list[str], str]:
22 """Given a filename provided by remember_bpython_input,

Callers 3

__getitem__Method · 0.95
__contains__Method · 0.95
__delitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected