(self, i: int)
| 94 | return 42 |
| 95 | |
| 96 | def dep_explicit(self, i: int) -> None: |
| 97 | if i == 0: |
| 98 | warnings.warn_explicit( |
| 99 | "dep_explicit", category=DeprecationWarning, filename="hello", lineno=3 |
| 100 | ) |
| 101 | |
| 102 | def test_deprecated_call_raises(self) -> None: |
| 103 | with pytest.raises(pytest.fail.Exception, match="No warnings of type"): |
nothing calls this directly
no outgoing calls
no test coverage detected