File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,12 @@ def parse_source_type_name(
40
40
Split full source type name into package and type name.
41
41
E.g. 'root.package.Message' -> ('root.package', 'Message')
42
42
'root.Message.SomeEnum' -> ('root', 'Message.SomeEnum')
43
+
44
+ The function goes through the symbols that have been defined (names, enums, packages) to find the actual package and
45
+ name of the object that is referenced.
43
46
"""
44
47
if field_type_name [0 ] != "." :
45
- raise RuntimeError
48
+ raise RuntimeError ( "relative names are not supported" )
46
49
field_type_name = field_type_name [1 :]
47
50
parts = field_type_name .split ("." )
48
51
Original file line number Diff line number Diff line change @@ -181,6 +181,9 @@ def __post_init__(self) -> None:
181
181
raise ValueError (f"`{ field_name } ` is a required field." )
182
182
183
183
def ready (self ) -> None :
184
+ """
185
+ This function is called after all the compilers are created, but before generating the output code.
186
+ """
184
187
pass
185
188
186
189
@property
You can’t perform that action at this time.
0 commit comments