@@ -1188,7 +1188,7 @@ def parser_info() -> str:
11881188
11891189@trait
11901190class Documented (Saveable , metaclass = ABCMeta ):
1191- pass
1191+ doc : None | Sequence [ str ] | str
11921192
11931193
11941194class RecordField (Documented ):
@@ -1456,9 +1456,9 @@ def __init__(
14561456 self .loadingOptions = loadingOptions
14571457 else :
14581458 self .loadingOptions = LoadingOptions ()
1459- self .doc = doc
1460- self .name = name
1461- self .type_ = type_
1459+ self .doc : None | Sequence [ str ] | str = doc
1460+ self .name : str = name
1461+ self .type_ : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = type_
14621462
14631463 attrs : ClassVar [Collection [str ]] = frozenset (["doc" , "name" , "type" ])
14641464
@@ -1656,8 +1656,8 @@ def __init__(
16561656 self .loadingOptions = loadingOptions
16571657 else :
16581658 self .loadingOptions = LoadingOptions ()
1659- self .fields = fields
1660- self .type_ = type_
1659+ self .fields : None | Sequence [ RecordField ] = fields
1660+ self .type_ : Literal [ "record" ] = type_
16611661
16621662 attrs : ClassVar [Collection [str ]] = frozenset (["fields" , "type" ])
16631663
@@ -1928,9 +1928,9 @@ def __init__(
19281928 self .loadingOptions = loadingOptions
19291929 else :
19301930 self .loadingOptions = LoadingOptions ()
1931- self .name = name if name is not None else "_:" + str (_uuid__ .uuid4 ())
1932- self .symbols = symbols
1933- self .type_ = type_
1931+ self .name : str = name if name is not None else "_:" + str (_uuid__ .uuid4 ())
1932+ self .symbols : Sequence [ str ] = symbols
1933+ self .type_ : Literal [ "enum" ] = type_
19341934
19351935 attrs : ClassVar [Collection [str ]] = frozenset (["name" , "symbols" , "type" ])
19361936
@@ -2128,8 +2128,8 @@ def __init__(
21282128 self .loadingOptions = loadingOptions
21292129 else :
21302130 self .loadingOptions = LoadingOptions ()
2131- self .items = items
2132- self .type_ = type_
2131+ self .items : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = items
2132+ self .type_ : Literal [ "array" ] = type_
21332133
21342134 attrs : ClassVar [Collection [str ]] = frozenset (["items" , "type" ])
21352135
@@ -2327,8 +2327,8 @@ def __init__(
23272327 self .loadingOptions = loadingOptions
23282328 else :
23292329 self .loadingOptions = LoadingOptions ()
2330- self .type_ = type_
2331- self .values = values
2330+ self .type_ : Literal [ "map" ] = type_
2331+ self .values : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = values
23322332
23332333 attrs : ClassVar [Collection [str ]] = frozenset (["type" , "values" ])
23342334
@@ -2526,8 +2526,8 @@ def __init__(
25262526 self .loadingOptions = loadingOptions
25272527 else :
25282528 self .loadingOptions = LoadingOptions ()
2529- self .names = names
2530- self .type_ = type_
2529+ self .names : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = names
2530+ self .type_ : Literal [ "union" ] = type_
25312531
25322532 attrs : ClassVar [Collection [str ]] = frozenset (["names" , "type" ])
25332533
@@ -3247,17 +3247,17 @@ def __init__(
32473247 self .loadingOptions = loadingOptions
32483248 else :
32493249 self .loadingOptions = LoadingOptions ()
3250- self ._id = _id
3251- self ._type = _type
3252- self ._container = _container
3253- self .identity = identity
3254- self .noLinkCheck = noLinkCheck
3255- self .mapSubject = mapSubject
3256- self .mapPredicate = mapPredicate
3257- self .refScope = refScope
3258- self .typeDSL = typeDSL
3259- self .secondaryFilesDSL = secondaryFilesDSL
3260- self .subscope = subscope
3250+ self ._id : None | str = _id
3251+ self ._type : None | str = _type
3252+ self ._container : None | str = _container
3253+ self .identity : None | bool = identity
3254+ self .noLinkCheck : None | bool = noLinkCheck
3255+ self .mapSubject : None | str = mapSubject
3256+ self .mapPredicate : None | str = mapPredicate
3257+ self .refScope : None | i32 = refScope
3258+ self .typeDSL : None | bool = typeDSL
3259+ self .secondaryFilesDSL : None | bool = secondaryFilesDSL
3260+ self .subscope : None | str = subscope
32613261
32623262 attrs : ClassVar [Collection [str ]] = frozenset (
32633263 [
@@ -3473,20 +3473,24 @@ def __init__(
34733473 self .loadingOptions = loadingOptions
34743474 else :
34753475 self .loadingOptions = LoadingOptions ()
3476- self .specializeFrom = specializeFrom
3477- self .specializeTo = specializeTo
3476+ self .specializeFrom : str = specializeFrom
3477+ self .specializeTo : str = specializeTo
34783478
34793479 attrs : ClassVar [Collection [str ]] = frozenset (["specializeFrom" , "specializeTo" ])
34803480
34813481
34823482@trait
34833483class NamedType (Saveable , metaclass = ABCMeta ):
3484- pass
3484+ name : str
3485+ inVocab : None | bool
34853486
34863487
34873488@trait
34883489class DocType (Documented , metaclass = ABCMeta ):
3489- pass
3490+ doc : None | Sequence [str ] | str
3491+ docParent : None | str
3492+ docChild : None | Sequence [str ] | str
3493+ docAfter : None | str
34903494
34913495
34923496@trait
@@ -3496,7 +3500,12 @@ class SchemaDefinedType(DocType, metaclass=ABCMeta):
34963500
34973501 """
34983502
3499- pass
3503+ doc : None | Sequence [str ] | str
3504+ docParent : None | str
3505+ docChild : None | Sequence [str ] | str
3506+ docAfter : None | str
3507+ jsonldPredicate : JsonldPredicate | None | str
3508+ documentRoot : None | bool
35003509
35013510
35023511class SaladRecordField (RecordField ):
@@ -3877,11 +3886,11 @@ def __init__(
38773886 self .loadingOptions = loadingOptions
38783887 else :
38793888 self .loadingOptions = LoadingOptions ()
3880- self .doc = doc
3881- self .name = name
3882- self .type_ = type_
3883- self .jsonldPredicate = jsonldPredicate
3884- self .default = default
3889+ self .doc : None | Sequence [ str ] | str = doc
3890+ self .name : str = name
3891+ self .type_ : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = type_
3892+ self .jsonldPredicate : JsonldPredicate | None | str = jsonldPredicate
3893+ self .default : Any | None = default
38853894
38863895 attrs : ClassVar [Collection [str ]] = frozenset (
38873896 ["doc" , "name" , "type" , "jsonldPredicate" , "default" ]
@@ -4713,19 +4722,19 @@ def __init__(
47134722 self .loadingOptions = loadingOptions
47144723 else :
47154724 self .loadingOptions = LoadingOptions ()
4716- self .name = name
4717- self .inVocab = inVocab
4718- self .fields = fields
4719- self .type_ = type_
4720- self .doc = doc
4721- self .docParent = docParent
4722- self .docChild = docChild
4723- self .docAfter = docAfter
4724- self .jsonldPredicate = jsonldPredicate
4725- self .documentRoot = documentRoot
4726- self .abstract = abstract
4727- self .extends = extends
4728- self .specialize = specialize
4725+ self .name : str = name
4726+ self .inVocab : None | bool = inVocab
4727+ self .fields : None | Sequence [ SaladRecordField ] = fields
4728+ self .type_ : Literal [ "record" ] = type_
4729+ self .doc : None | Sequence [ str ] | str = doc
4730+ self .docParent : None | str = docParent
4731+ self .docChild : None | Sequence [ str ] | str = docChild
4732+ self .docAfter : None | str = docAfter
4733+ self .jsonldPredicate : JsonldPredicate | None | str = jsonldPredicate
4734+ self .documentRoot : None | bool = documentRoot
4735+ self .abstract : None | bool = abstract
4736+ self .extends : None | Sequence [ str ] | str = extends
4737+ self .specialize : None | Sequence [ SpecializeDef ] = specialize
47294738
47304739 attrs : ClassVar [Collection [str ]] = frozenset (
47314740 [
@@ -5460,17 +5469,17 @@ def __init__(
54605469 self .loadingOptions = loadingOptions
54615470 else :
54625471 self .loadingOptions = LoadingOptions ()
5463- self .name = name if name is not None else "_:" + str (_uuid__ .uuid4 ())
5464- self .inVocab = inVocab
5465- self .symbols = symbols
5466- self .type_ = type_
5467- self .doc = doc
5468- self .docParent = docParent
5469- self .docChild = docChild
5470- self .docAfter = docAfter
5471- self .jsonldPredicate = jsonldPredicate
5472- self .documentRoot = documentRoot
5473- self .extends = extends
5472+ self .name : str = name if name is not None else "_:" + str (_uuid__ .uuid4 ())
5473+ self .inVocab : None | bool = inVocab
5474+ self .symbols : Sequence [ str ] = symbols
5475+ self .type_ : Literal [ "enum" ] = type_
5476+ self .doc : None | Sequence [ str ] | str = doc
5477+ self .docParent : None | str = docParent
5478+ self .docChild : None | Sequence [ str ] | str = docChild
5479+ self .docAfter : None | str = docAfter
5480+ self .jsonldPredicate : JsonldPredicate | None | str = jsonldPredicate
5481+ self .documentRoot : None | bool = documentRoot
5482+ self .extends : None | Sequence [ str ] | str = extends
54745483
54755484 attrs : ClassVar [Collection [str ]] = frozenset (
54765485 [
@@ -6149,16 +6158,16 @@ def __init__(
61496158 self .loadingOptions = loadingOptions
61506159 else :
61516160 self .loadingOptions = LoadingOptions ()
6152- self .name = name
6153- self .inVocab = inVocab
6154- self .type_ = type_
6155- self .values = values
6156- self .doc = doc
6157- self .docParent = docParent
6158- self .docChild = docChild
6159- self .docAfter = docAfter
6160- self .jsonldPredicate = jsonldPredicate
6161- self .documentRoot = documentRoot
6161+ self .name : str = name
6162+ self .inVocab : None | bool = inVocab
6163+ self .type_ : Literal [ "map" ] = type_
6164+ self .values : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = values
6165+ self .doc : None | Sequence [ str ] | str = doc
6166+ self .docParent : None | str = docParent
6167+ self .docChild : None | Sequence [ str ] | str = docChild
6168+ self .docAfter : None | str = docAfter
6169+ self .jsonldPredicate : JsonldPredicate | None | str = jsonldPredicate
6170+ self .documentRoot : None | bool = documentRoot
61626171
61636172 attrs : ClassVar [Collection [str ]] = frozenset (
61646173 [
@@ -6778,15 +6787,15 @@ def __init__(
67786787 self .loadingOptions = loadingOptions
67796788 else :
67806789 self .loadingOptions = LoadingOptions ()
6781- self .name = name
6782- self .inVocab = inVocab
6783- self .names = names
6784- self .type_ = type_
6785- self .doc = doc
6786- self .docParent = docParent
6787- self .docChild = docChild
6788- self .docAfter = docAfter
6789- self .documentRoot = documentRoot
6790+ self .name : str = name
6791+ self .inVocab : None | bool = inVocab
6792+ self .names : ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | Sequence [ ArraySchema | EnumSchema | Literal [ "null" , "boolean" , "int" , "long" , "float" , "double" , "string" ] | MapSchema | RecordSchema | UnionSchema | str ] | UnionSchema | str = names
6793+ self .type_ : Literal [ "union" ] = type_
6794+ self .doc : None | Sequence [ str ] | str = doc
6795+ self .docParent : None | str = docParent
6796+ self .docChild : None | Sequence [ str ] | str = docChild
6797+ self .docAfter : None | str = docAfter
6798+ self .documentRoot : None | bool = documentRoot
67906799
67916800 attrs : ClassVar [Collection [str ]] = frozenset (
67926801 [
@@ -7293,13 +7302,13 @@ def __init__(
72937302 self .loadingOptions = loadingOptions
72947303 else :
72957304 self .loadingOptions = LoadingOptions ()
7296- self .name = name
7297- self .inVocab = inVocab
7298- self .doc = doc
7299- self .docParent = docParent
7300- self .docChild = docChild
7301- self .docAfter = docAfter
7302- self .type_ = type_
7305+ self .name : str = name
7306+ self .inVocab : None | bool = inVocab
7307+ self .doc : None | Sequence [ str ] | str = doc
7308+ self .docParent : None | str = docParent
7309+ self .docChild : None | Sequence [ str ] | str = docChild
7310+ self .docAfter : None | str = docAfter
7311+ self .type_ : Literal [ "documentation" ] = type_
73037312
73047313 attrs : ClassVar [Collection [str ]] = frozenset (
73057314 ["name" , "inVocab" , "doc" , "docParent" , "docChild" , "docAfter" , "type" ]
0 commit comments