core: move mcachew into my.core.cachew; use better typing annotations (copied from cachew)
This commit is contained in:
parent
f8cd31044e
commit
5fe21240b4
7 changed files with 113 additions and 77 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue