aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/attrs/attr/exceptions.py
diff options
context:
space:
mode:
authorabodrov <abodrov@yandex-team.ru>2022-02-10 16:47:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:18 +0300
commit1b8c043abfc689b3d27384c4202b20031fc4ae31 (patch)
tree43ffe3a7cfe51a083e22d9eabb71c4f5321f6b08 /contrib/python/attrs/attr/exceptions.py
parente7a025f6f4917a3eb54227db101e58bb26ee2cfa (diff)
downloadydb-1b8c043abfc689b3d27384c4202b20031fc4ae31.tar.gz
Restoring authorship annotation for <abodrov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/attrs/attr/exceptions.py')
-rw-r--r--contrib/python/attrs/attr/exceptions.py42
1 files changed, 21 insertions, 21 deletions
diff --git a/contrib/python/attrs/attr/exceptions.py b/contrib/python/attrs/attr/exceptions.py
index f6f9861bea9..39f7107f1da 100644
--- a/contrib/python/attrs/attr/exceptions.py
+++ b/contrib/python/attrs/attr/exceptions.py
@@ -1,37 +1,37 @@
from __future__ import absolute_import, division, print_function
-class FrozenError(AttributeError):
+class FrozenError(AttributeError):
"""
A frozen/immutable instance or attribute have been attempted to be
- modified.
+ modified.
It mirrors the behavior of ``namedtuples`` by using the same error message
and subclassing `AttributeError`.
- .. versionadded:: 20.1.0
+ .. versionadded:: 20.1.0
"""
msg = "can't set attribute"
args = [msg]
-class FrozenInstanceError(FrozenError):
- """
- A frozen instance has been attempted to be modified.
-
- .. versionadded:: 16.1.0
- """
-
-
-class FrozenAttributeError(FrozenError):
- """
- A frozen attribute has been attempted to be modified.
-
- .. versionadded:: 20.1.0
- """
-
-
+class FrozenInstanceError(FrozenError):
+ """
+ A frozen instance has been attempted to be modified.
+
+ .. versionadded:: 16.1.0
+ """
+
+
+class FrozenAttributeError(FrozenError):
+ """
+ A frozen attribute has been attempted to be modified.
+
+ .. versionadded:: 20.1.0
+ """
+
+
class AttrsAttributeNotFoundError(ValueError):
"""
An ``attrs`` function couldn't find an attribute that the user asked for.
@@ -68,8 +68,8 @@ class UnannotatedAttributeError(RuntimeError):
class PythonTooOldError(RuntimeError):
"""
- It was attempted to use an ``attrs`` feature that requires a newer Python
- version.
+ It was attempted to use an ``attrs`` feature that requires a newer Python
+ version.
.. versionadded:: 18.2.0
"""