MCPcopy Index your code
hub / github.com/RustPython/RustPython / X

Class X

Lib/test/test_genericalias.py:287–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 # gh-143823
286 lst = []
287 class X:
288 def __repr__(self):
289 lst.clear()
290 return "x"
291
292 lst += [X(), 1]
293 ga = GenericAlias(int, lst)

Callers 1

test_evil_repr3Method · 0.70

Calls

no outgoing calls

Tested by 1

test_evil_repr3Method · 0.56