MCPcopy Index your code
hub / github.com/ipython/ipython / DummyDB

Class DummyDB

IPython/core/history.py:79–97  ·  view source on GitHub ↗

Dummy DB that will act as a black hole for history. Only used in the absence of sqlite

Source from the content-addressed store, hash-verified

77
78@undoc
79class DummyDB:
80 """Dummy DB that will act as a black hole for history.
81
82 Only used in the absence of sqlite"""
83
84 def execute(*args: typing.Any, **kwargs: typing.Any) -> list:
85 return []
86
87 def commit(self, *args, **kwargs): # type: ignore [no-untyped-def]
88 pass
89
90 def __enter__(self, *args, **kwargs): # type: ignore [no-untyped-def]
91 pass
92
93 def __exit__(self, *args, **kwargs): # type: ignore [no-untyped-def]
94 pass
95
96 def close(self, *args, **kwargs): # type: ignore [no-untyped-def]
97 pass
98
99
100@decorator

Callers 1

init_dbMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…