| 39 | |
| 40 | @dataclass(frozen=True) |
| 41 | class QueueEntry: # noqa: PLW1641 |
| 42 | dvc_root: str |
| 43 | scm_root: str |
| 44 | stash_ref: str |
| 45 | stash_rev: str |
| 46 | baseline_rev: str |
| 47 | branch: Optional[str] |
| 48 | name: Optional[str] |
| 49 | head_rev: Optional[str] = None |
| 50 | |
| 51 | def __eq__(self, other: object): |
| 52 | return ( |
| 53 | isinstance(other, QueueEntry) |
| 54 | and self.dvc_root == other.dvc_root |
| 55 | and self.scm_root == other.scm_root |
| 56 | and self.stash_ref == other.stash_ref |
| 57 | and self.stash_rev == other.stash_rev |
| 58 | ) |
| 59 | |
| 60 | def asdict(self) -> dict[str, Any]: |
| 61 | return asdict(self) |
| 62 | |
| 63 | @classmethod |
| 64 | def from_dict(cls, d: dict[str, Any]) -> "QueueEntry": |
| 65 | return cls(**d) |
| 66 | |
| 67 | |
| 68 | class QueueGetResult(NamedTuple): |
no outgoing calls