From 87e9cbed6d0e44e8a6154662b7b9925b75fd50ce Mon Sep 17 00:00:00 2001 From: Llandy Riveron Del Risco Date: Mon, 26 Apr 2021 20:53:28 +0200 Subject: [PATCH] bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (cherry picked from commit 8a307e488d596914a7a5df6b2fdd945f8ce81e69) Co-authored-by: Llandy Riveron Del Risco --- Doc/library/dataclasses.rst | 2 +- Misc/ACKS | 1 + .../next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 133cc0a065cace..6cd8d8ed0c2640 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -592,4 +592,4 @@ Exceptions Raised when an implicitly defined :meth:`__setattr__` or :meth:`__delattr__` is called on a dataclass which was defined with - ``frozen=True``. + ``frozen=True``. It is a subclass of :exc:`AttributeError`. diff --git a/Misc/ACKS b/Misc/ACKS index ee2f3fa2e3aa58..9d0dffe57652a1 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1431,6 +1431,7 @@ Vlad Riscutia Wes Rishel Daniel Riti Juan M. Bello Rivas +Llandy Riveron Del Risco Mohd Sanad Zaki Rizvi Davide Rizzo Anthony Roach diff --git a/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst b/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst new file mode 100644 index 00000000000000..dcf252e21bb9e0 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst @@ -0,0 +1,2 @@ +Update dataclasses documentation to express that FrozenInstanceError is +derived from AttributeError.