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:
Eric Nielsen 2024-06-22 20:15:12 -05:00 committed by GitHub
parent 519a278899
commit 715609663a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ use crate::checkers::ast::Checker;
/// PEP 563. /// PEP 563.
/// ///
/// ## Why is this bad? /// ## 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 /// `list[str]` instead of `List[str]`. However, these annotations are only
/// available on Python 3.9 and higher, _unless_ the `from __future__ import annotations` /// available on Python 3.9 and higher, _unless_ the `from __future__ import annotations`
/// import is present. /// import is present.