(root: Path)
| 2210 | |
| 2211 | |
| 2212 | def _resolved_root(root: Path) -> Path: |
| 2213 | key = str(root) |
| 2214 | got = _RESOLVED_ROOT_CACHE.get(key) |
| 2215 | if got is None: |
| 2216 | try: |
| 2217 | got = root.resolve() |
| 2218 | except (OSError, RuntimeError): |
| 2219 | got = root |
| 2220 | _RESOLVED_ROOT_CACHE[key] = got |
| 2221 | return got |
| 2222 | |
| 2223 | |
| 2224 | def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict: |
no test coverage detected