aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/attrs/attr/exceptions.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/attrs/attr/exceptions.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/attrs/attr/exceptions.py')
-rw-r--r--contrib/python/attrs/attr/exceptions.py88
1 files changed, 44 insertions, 44 deletions
diff --git a/contrib/python/attrs/attr/exceptions.py b/contrib/python/attrs/attr/exceptions.py
index 3669abab3af..f6f9861bea9 100644
--- a/contrib/python/attrs/attr/exceptions.py
+++ b/contrib/python/attrs/attr/exceptions.py
@@ -1,21 +1,21 @@
-from __future__ import absolute_import, division, print_function
-
-
+from __future__ import absolute_import, division, print_function
+
+
class FrozenError(AttributeError):
- """
+ """
A frozen/immutable instance or attribute have been attempted to be
modified.
-
- It mirrors the behavior of ``namedtuples`` by using the same error message
+
+ It mirrors the behavior of ``namedtuples`` by using the same error message
and subclassing `AttributeError`.
-
+
.. versionadded:: 20.1.0
- """
+ """
+
+ msg = "can't set attribute"
+ args = [msg]
+
- msg = "can't set attribute"
- args = [msg]
-
-
class FrozenInstanceError(FrozenError):
"""
A frozen instance has been attempted to be modified.
@@ -32,38 +32,38 @@ class FrozenAttributeError(FrozenError):
"""
-class AttrsAttributeNotFoundError(ValueError):
- """
- An ``attrs`` function couldn't find an attribute that the user asked for.
-
- .. versionadded:: 16.2.0
- """
-
-
-class NotAnAttrsClassError(ValueError):
- """
- A non-``attrs`` class has been passed into an ``attrs`` function.
-
- .. versionadded:: 16.2.0
- """
-
-
-class DefaultAlreadySetError(RuntimeError):
- """
- A default has been set using ``attr.ib()`` and is attempted to be reset
- using the decorator.
-
- .. versionadded:: 17.1.0
- """
-
-
-class UnannotatedAttributeError(RuntimeError):
- """
- A class with ``auto_attribs=True`` has an ``attr.ib()`` without a type
- annotation.
-
- .. versionadded:: 17.3.0
- """
+class AttrsAttributeNotFoundError(ValueError):
+ """
+ An ``attrs`` function couldn't find an attribute that the user asked for.
+
+ .. versionadded:: 16.2.0
+ """
+
+
+class NotAnAttrsClassError(ValueError):
+ """
+ A non-``attrs`` class has been passed into an ``attrs`` function.
+
+ .. versionadded:: 16.2.0
+ """
+
+
+class DefaultAlreadySetError(RuntimeError):
+ """
+ A default has been set using ``attr.ib()`` and is attempted to be reset
+ using the decorator.
+
+ .. versionadded:: 17.1.0
+ """
+
+
+class UnannotatedAttributeError(RuntimeError):
+ """
+ A class with ``auto_attribs=True`` has an ``attr.ib()`` without a type
+ annotation.
+
+ .. versionadded:: 17.3.0
+ """
class PythonTooOldError(RuntimeError):