core: add helper to 'freeze' dataclasses, in order to derive a schema from the properties

This commit is contained in:
Dima Gerasimov 2021-02-22 21:58:19 +00:00
parent df0d993a30
commit 0ee3141c1e
5 changed files with 81 additions and 5 deletions

View file

@ -67,7 +67,7 @@ class Entry:
# todo multiple threads? not sure if would help much... (+ need to find offset somehow?)
def entries() -> Iterable[Res[Entry]]:
def entries() -> Iterable[Entry]:
inps = list(inputs())
base: List[PathIsh] = ['arbtt-dump', '--format=json']