(
cls, *, key: HashKey, defs: set[str], stateful_refs: set[str]
)
| 528 | |
| 529 | @classmethod |
| 530 | def empty( |
| 531 | cls, *, key: HashKey, defs: set[str], stateful_refs: set[str] |
| 532 | ) -> Cache: |
| 533 | return Cache( |
| 534 | defs={d: None for d in defs}, |
| 535 | hash=key.hash, |
| 536 | cache_type=key.cache_type, |
| 537 | stateful_refs=stateful_refs, |
| 538 | hit=False, |
| 539 | meta={}, |
| 540 | ) |
| 541 | |
| 542 | @classmethod |
| 543 | def new( |