File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
# from pydantic.dataclasses import dataclass, Field as field
8
8
9
+ # TODO: Use info from https://typedoc.org/api/modules/JSONOutput.html to rebuild models!
10
+
9
11
10
12
# https://github.com/TypeStrong/typedoc/blob/master/src/lib/models/reflections/kind.ts
11
13
class ReflectionKind (Enum ):
@@ -138,6 +140,12 @@ class BlockTagContentKind(Enum):
138
140
CODE : str = "code"
139
141
140
142
143
+ @dataclass (kw_only = True )
144
+ class FileRegistry :
145
+ entries : dict [int , str ]
146
+ reflections : dict [int , int ]
147
+
148
+
141
149
@dataclass (kw_only = True )
142
150
class BlockTagContent :
143
151
kind : BlockTagContentKind
@@ -310,9 +318,10 @@ def source_contents(self, base_file_path: str = ".") -> str:
310
318
@dataclass (kw_only = True )
311
319
class Project (Reflection ):
312
320
package_name : str
313
- readme : list [BlockTagContent ]
321
+ readme : list [BlockTagContent ] | None = None
314
322
symbol_id_map : dict [int , Reflection ] = field (default_factory = dict , repr = False )
315
323
package_version : str | None = None
324
+ files : FileRegistry | None = None
316
325
317
326
@property
318
327
def kind (self ) -> ReflectionKind :
You can’t perform that action at this time.
0 commit comments