core: move mcachew into my.core.cachew; use better typing annotations (copied from cachew)
This commit is contained in:
parent
f8cd31044e
commit
6f57def9cd
7 changed files with 113 additions and 77 deletions
|
@ -53,7 +53,7 @@ def is_bad_table(name: str) -> bool:
|
|||
|
||||
from my.core.cachew import cache_dir
|
||||
from my.core.common import mcachew
|
||||
@mcachew(depends_on=lambda: inputs(), cache_path=cache_dir('bluemaestro'))
|
||||
@mcachew(depends_on=inputs, cache_path=cache_dir('bluemaestro'))
|
||||
def measurements() -> Iterable[Res[Measurement]]:
|
||||
# todo ideally this would be via arguments... but needs to be lazy
|
||||
dbs = inputs()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue