Clear the list of recorded warnings.
(self)
| 194 | raise AssertionError("%r not found in warning list" % cls) |
| 195 | |
| 196 | def clear(self) -> None: |
| 197 | """Clear the list of recorded warnings.""" |
| 198 | self._list[:] = [] |
| 199 | |
| 200 | # Type ignored because it doesn't exactly warnings.catch_warnings.__enter__ |
| 201 | # -- it returns a List but we only emulate one. |