mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Update PEP reference in future_rewritable_type_annotation.rs (#11985)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Documentation mentions: > PEP 563 enabled the use of a number of convenient type annotations, such as `list[str]` instead of `List[str]` but it meant [PEP 585](https://peps.python.org/pep-0585/) instead. [PEP 563](https://peps.python.org/pep-0563/) is the one defining `from __future__ import annotations`. ## Test Plan No automated test required, just verify that https://peps.python.org/pep-0585/ is the correct reference.
This commit is contained in:
parent
519a278899
commit
715609663a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ use crate::checkers::ast::Checker;
|
|||
/// PEP 563.
|
||||
///
|
||||
/// ## Why is this bad?
|
||||
/// PEP 563 enabled the use of a number of convenient type annotations, such as
|
||||
/// PEP 585 enabled the use of a number of convenient type annotations, such as
|
||||
/// `list[str]` instead of `List[str]`. However, these annotations are only
|
||||
/// available on Python 3.9 and higher, _unless_ the `from __future__ import annotations`
|
||||
/// import is present.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue