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

Class BadNamedTuple

tests/test_guarded_eval.py:198–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 pass
197
198 class BadNamedTuple(NamedTuple):
199 a: str
200
201 def __getitem__(self, key):
202 return None
203
204 good = GoodNamedTuple(a="x")
205 bad = BadNamedTuple(a="x")

Callers 1

test_named_tupleFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_named_tupleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…