From: Allan Lago <35788148+alago1@users.noreply.github.com> Date: Mon, 24 Apr 2023 17:16:23 +0000 (-0600) Subject: gh-91687: modernize dataclass example typing (#103773) X-Git-Tag: v3.12.0b1~457 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ef614c1adad2b8857442bf0fea649891b591109;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 5f4dc25bfd78..a04e5f744fa3 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