From 0ae58484c8dae993787b828f9c954ef836e7a464 Mon Sep 17 00:00:00 2001 From: "Thiago J. Barbalho" <11036045+gacheiro@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:02:30 -0300 Subject: [PATCH] =?UTF-8?q?[docs]=20Replace=20`List`=20with=20built?= =?UTF-8?q?=E2=80=91in=20`list`=20(PEP=E2=80=AF585)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/common_issues.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index aa325dd3b05c..e4239bd7a8ee 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -731,7 +731,7 @@ This example demonstrates both safe and unsafe overrides: class NarrowerReturn(A): # A more specific return type is fine - def test(self, t: Sequence[int]) -> List[str]: # OK + def test(self, t: Sequence[int]) -> list[str]: # OK ... class GeneralizedReturn(A): @@ -746,7 +746,7 @@ not necessary: .. code-block:: python class NarrowerArgument(A): - def test(self, t: List[int]) -> Sequence[str]: # type: ignore[override] + def test(self, t: list[int]) -> Sequence[str]: # type: ignore[override] ... .. _unreachable: