From 7ef614c1adad2b8857442bf0fea649891b591109 Mon Sep 17 00:00:00 2001 From: Allan Lago <35788148+alago1@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:16:23 -0600 Subject: [PATCH] gh-91687: modernize dataclass example typing (#103773) modernize dataclass example typing `list` rather than `List` and comment as to that line being the alluded too error. --- Doc/library/dataclasses.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 5f4dc25bfd7877..a04e5f744fa350 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -714,7 +714,7 @@ Using dataclasses, *if* this code was valid:: @dataclass class D: - x: List = [] + x: list = [] # This code raises ValueError def add(self, element): self.x += element