MCPcopy
hub / github.com/pallets/werkzeug / Iterable

Class Iterable

tests/test_wrappers.py:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 closed = []
280
281 class Iterable:
282 def __next__(self):
283 raise StopIteration()
284
285 def __iter__(self):
286 return self
287
288 def close(self):
289 closed.append(True)
290
291 response = wrappers.Response(Iterable())
292 response.call_on_close(lambda: closed.append(True))

Callers 1

test_base_responseFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_base_responseFunction · 0.56