mirror of https://github.com/astral-sh/ruff
add PEP 765 to B012 docs
This commit is contained in:
parent
cf0d026b41
commit
3a779a237e
|
|
@ -18,6 +18,9 @@ use crate::checkers::ast::Checker;
|
||||||
/// `break`, `continue`, or `return` statement is reached in a `finally` block,
|
/// `break`, `continue`, or `return` statement is reached in a `finally` block,
|
||||||
/// any exception raised in the `try` or `except` blocks will be silenced.
|
/// any exception raised in the `try` or `except` blocks will be silenced.
|
||||||
///
|
///
|
||||||
|
/// [PEP 765](https://peps.python.org/pep-0765/) additionally made this a `SyntaxWarning` starting
|
||||||
|
/// in Python 3.14. It may become a `SyntaxError` in the future.
|
||||||
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```python
|
/// ```python
|
||||||
/// def speed(distance, time):
|
/// def speed(distance, time):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue