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

Method __next__

src/werkzeug/middleware/lint.py:149–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

147 return self
148
149 def __next__(self) -> bytes:
150 if self.closed:
151 warn("Iterated over closed 'app_iter'.", WSGIWarning, stacklevel=2)
152
153 rv = self._next()
154
155 if not self.headers_set:
156 warn(
157 "The application returned before it started the response.",
158 WSGIWarning,
159 stacklevel=2,
160 )
161
162 check_type("application iterator items", rv, bytes)
163 self.chunks.append(len(rv))
164 return rv
165
166 def close(self) -> None:
167 self.closed = True

Callers

nothing calls this directly

Calls 3

check_typeFunction · 0.85
_nextMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected