(self)
| 41 | @mypyc_attr(allow_interpreted_subclasses=True) # for tests |
| 42 | class FileSystemCache: |
| 43 | def __init__(self) -> None: |
| 44 | # The package root is not flushed with the caches. |
| 45 | # It is set by set_package_root() below. |
| 46 | self.package_root: list[str] = [] |
| 47 | self.flush() |
| 48 | |
| 49 | def set_package_root(self, package_root: list[str]) -> None: |
| 50 | self.package_root = package_root |