(self, *, _ispytest: bool = False)
| 162 | """ |
| 163 | |
| 164 | def __init__(self, *, _ispytest: bool = False) -> None: |
| 165 | check_ispytest(_ispytest) |
| 166 | # Type ignored due to the way typeshed handles warnings.catch_warnings. |
| 167 | super().__init__(record=True) # type: ignore[call-arg] |
| 168 | self._entered = False |
| 169 | self._list: List[warnings.WarningMessage] = [] |
| 170 | |
| 171 | @property |
| 172 | def list(self) -> List["warnings.WarningMessage"]: |
nothing calls this directly
no test coverage detected