]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25635)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Apr 2021 19:36:23 +0000 (12:36 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 19:36:23 +0000 (15:36 -0400)
(cherry picked from commit 8a307e488d596914a7a5df6b2fdd945f8ce81e69)

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
Doc/library/dataclasses.rst
Misc/ACKS
Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst [new file with mode: 0644]

index 133cc0a065caced38e44ca091b62e8775a23a32d..6cd8d8ed0c2640137999db8d321dbed3fe264f07 100644 (file)
@@ -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`.
index ee2f3fa2e3aa58096a795d7ca3a194e42c1da628..9d0dffe57652a168fb1d0a73b61e4c7d1f0e751a 100644 (file)
--- 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 (file)
index 0000000..dcf252e
--- /dev/null
@@ -0,0 +1,2 @@
+Update dataclasses documentation to express that FrozenInstanceError is
+derived from AttributeError.