Skip to content

Commit 777f6fd

Browse files
committed
Snaps is a frozen dataclass
1 parent 6847690 commit 777f6fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stagpy/stagyydata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def filter(
374374
return self[:].filter(snap, rprofs, fields, func)
375375

376376

377+
@dataclass(frozen=True)
377378
class Snaps:
378379
"""Collection of snapshots.
379380
@@ -387,8 +388,7 @@ class Snaps:
387388
```
388389
"""
389390

390-
def __init__(self, sdat: StagyyData):
391-
self.sdat = sdat
391+
sdat: StagyyData
392392

393393
def __repr__(self) -> str:
394394
return f"{self.sdat!r}.snaps"

0 commit comments

Comments
 (0)