core: move mcachew into my.core.cachew; use better typing annotations (copied from cachew)

This commit is contained in:
Dima Gerasimov 2023-06-07 22:06:29 +01:00
parent f8cd31044e
commit 6f57def9cd
7 changed files with 113 additions and 77 deletions

View file

@ -28,10 +28,9 @@ DAL = dal.DAL
Entry = dal.Entry
@mcachew(depends_on=lambda: inputs())
@mcachew(depends_on=inputs)
def entries() -> Iterable[Res[Entry]]:
dal = DAL(inputs())
it = dal.entries()
yield from dal.entries()