We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638d5d4 commit 7ee3e8fCopy full SHA for 7ee3e8f
1 file changed
src/api/exception.py
@@ -5,6 +5,8 @@
5
# See https://www.gnu.org/licenses/agpl-3.0.html for details.
6
# --------------------------------------------------------------------
7
8
+from __future__ import annotations
9
+
10
__all__ = [
11
"Error",
12
"InternalError",
@@ -57,3 +59,10 @@ class TempAlreadyFreedError(InternalError):
57
59
def __init__(self, label):
58
60
super().__init__(f"Label '{label}' already freed")
61
self.label = label
62
63
64
+class InvalidTypeError(InternalError):
65
+ """Raised when a type is invalid."""
66
67
+ def __init__(self, msg: str):
68
+ super().__init__(msg)
0 commit comments