Skip to content

Commit 81ec2ea

Browse files
committed
schema types
1 parent 100b3b6 commit 81ec2ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clkhash/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ class SchemaError(Exception):
2828

2929
def __init__(self,
3030
msg, # type: str
31-
errors=None # type: Sequence[InvalidSchemaError]
31+
errors=None # type: Optional[Sequence[InvalidSchemaError]]
3232
):
33+
# type: (...) -> None
3334
self.msg = msg
3435
self.errors = [] if errors is None else errors
3536
super(SchemaError, self).__init__(msg)
@@ -42,6 +43,7 @@ def __str__(self):
4243

4344
return self.msg + '\n\n' + detail
4445

46+
4547
class MasterSchemaError(Exception):
4648
""" Master schema missing? Corrupted? Otherwise surprising? This is
4749
the exception for you!

0 commit comments

Comments
 (0)