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
commitf02a874a7290593efbe4b3aeae69a04b46c1cc86 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/python/attrs/attr/exceptions.py
parent1b8c043abfc689b3d27384c4202b20031fc4ae31 (diff)
downloadydb-f02a874a7290593efbe4b3aeae69a04b46c1cc86.tar.gz
Restoring authorship annotation for <abodrov@yandex-team.ru>. Commit 2 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 39f7107f1da..f6f9861bea9 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
"""