(path: str)
| 12358 | |
| 12359 | @staticmethod |
| 12360 | def fingerprint_file(path: str) -> str: |
| 12361 | stat = os.stat(path) |
| 12362 | payload = f"{Path(path).resolve()}:{stat.st_size}:{stat.st_mtime_ns}" |
| 12363 | return hashlib.sha256(payload.encode("utf-8")).hexdigest() |
| 12364 | |
| 12365 | @classmethod |
| 12366 | def compatibility_key_for_model(cls, model: "Model") -> str: |
no test coverage detected