aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/fonttools/fontTools/ufoLib/errors.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-05-29 11:09:23 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-05-29 11:09:23 +0000
commita34a6816abefdcfe2c00295edb510cc5c99ad52c (patch)
treea264baadccf7add09a1b285786307ddd774472a5 /contrib/python/fonttools/fontTools/ufoLib/errors.py
parent84ec9093e10073ab151bfe5f81037a0d017c2362 (diff)
parentfdbc38349df2ee0ddc678fa2bffe84786f9639a3 (diff)
downloadydb-a34a6816abefdcfe2c00295edb510cc5c99ad52c.tar.gz
Merge branch 'rightlib' into merge-libs-250529-1108
Diffstat (limited to 'contrib/python/fonttools/fontTools/ufoLib/errors.py')
-rw-r--r--contrib/python/fonttools/fontTools/ufoLib/errors.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/python/fonttools/fontTools/ufoLib/errors.py b/contrib/python/fonttools/fontTools/ufoLib/errors.py
index e05dd438b43..6cc9fec3994 100644
--- a/contrib/python/fonttools/fontTools/ufoLib/errors.py
+++ b/contrib/python/fonttools/fontTools/ufoLib/errors.py
@@ -10,6 +10,14 @@ class UnsupportedUFOFormat(UFOLibError):
class GlifLibError(UFOLibError):
+ """An error raised by glifLib.
+
+ This class is a loose backport of PEP 678, adding a :attr:`.note`
+ attribute that can hold additional context for errors encountered.
+
+ It will be maintained until only Python 3.11-and-later are supported.
+ """
+
def _add_note(self, note: str) -> None:
# Loose backport of PEP 678 until we only support Python 3.11+, used for
# adding additional context to errors.