add PEP 765 to B012 docs

This commit is contained in:
Brent Westbrook 2025-10-02 08:59:28 -04:00
parent cf0d026b41
commit 3a779a237e
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ use crate::checkers::ast::Checker;
/// `break`, `continue`, or `return` statement is reached in a `finally` block,
/// 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
/// ```python
/// def speed(distance, time):