(
msg: str,
version: str,
type_: Type[exc.SADeprecationWarning],
stacklevel: int,
code: Optional[str] = None,
)
| 40 | |
| 41 | |
| 42 | def _warn_with_version( |
| 43 | msg: str, |
| 44 | version: str, |
| 45 | type_: Type[exc.SADeprecationWarning], |
| 46 | stacklevel: int, |
| 47 | code: Optional[str] = None, |
| 48 | ) -> None: |
| 49 | warn = type_(msg, code=code) |
| 50 | warn.deprecated_since = version |
| 51 | |
| 52 | _warnings_warn(warn, stacklevel=stacklevel + 1) |
| 53 | |
| 54 | |
| 55 | def warn_deprecated( |
no test coverage detected