diff options
author | zubchick <zubchick@yandex-team.ru> | 2022-02-10 16:48:22 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:22 +0300 |
commit | dd8b8ab59eaee9938ca16f368506d69ef2509b74 (patch) | |
tree | 5c9577458a79ca3e1acff2fd150ca398031a66e7 /contrib/python/attrs/attr/exceptions.py | |
parent | 01fa2667d0e5e868b18424bc1906146e5ee340db (diff) | |
download | ydb-dd8b8ab59eaee9938ca16f368506d69ef2509b74.tar.gz |
Restoring authorship annotation for <zubchick@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/attrs/attr/exceptions.py')
-rw-r--r-- | contrib/python/attrs/attr/exceptions.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/python/attrs/attr/exceptions.py b/contrib/python/attrs/attr/exceptions.py index f6f9861bea9..10cb9d6004d 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) |