aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/attrs/attr/exceptions.py
diff options
context:
space:
mode:
authorzubchick <zubchick@yandex-team.ru>2022-02-10 16:48:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:22 +0300
commit1d17d1551eecd4d143ecf2fb6fb05a9d71ccd6f5 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/python/attrs/attr/exceptions.py
parentdd8b8ab59eaee9938ca16f368506d69ef2509b74 (diff)
downloadydb-1d17d1551eecd4d143ecf2fb6fb05a9d71ccd6f5.tar.gz
Restoring authorship annotation for <zubchick@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/attrs/attr/exceptions.py')
-rw-r--r--contrib/python/attrs/attr/exceptions.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/python/attrs/attr/exceptions.py b/contrib/python/attrs/attr/exceptions.py
index 10cb9d6004d..f6f9861bea9 100644
--- a/contrib/python/attrs/attr/exceptions.py
+++ b/contrib/python/attrs/attr/exceptions.py
@@ -7,7 +7,7 @@ class FrozenError(AttributeError):
modified.
It mirrors the behavior of ``namedtuples`` by using the same error message
- and subclassing `AttributeError`.
+ and subclassing `AttributeError`.
.. versionadded:: 20.1.0
"""
@@ -73,20 +73,20 @@ class PythonTooOldError(RuntimeError):
.. versionadded:: 18.2.0
"""
-
-
-class NotCallableError(TypeError):
- """
- A ``attr.ib()`` requiring a callable has been set with a value
- that is not callable.
-
- .. versionadded:: 19.2.0
- """
-
- def __init__(self, msg, value):
- super(TypeError, self).__init__(msg, value)
- self.msg = msg
- self.value = value
-
- def __str__(self):
- return str(self.msg)
+
+
+class NotCallableError(TypeError):
+ """
+ A ``attr.ib()`` requiring a callable has been set with a value
+ that is not callable.
+
+ .. versionadded:: 19.2.0
+ """
+
+ def __init__(self, msg, value):
+ super(TypeError, self).__init__(msg, value)
+ self.msg = msg
+ self.value = value
+
+ def __str__(self):
+ return str(self.msg)