Skip to content

Commit d2f7bff

Browse files
committed
RprofsInstant._cached_extra is a cached property
1 parent 8a9194c commit d2f7bff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/stagpy/step.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,10 @@ class RprofsInstant(Rprofs):
493493

494494
def __init__(self, step: Step):
495495
self.step = step
496-
self._cached_extra: dict[str, Rprof] = {}
496+
497+
@cached_property
498+
def _cached_extra(self) -> dict[str, Rprof]:
499+
return {}
497500

498501
@cached_property
499502
def _data(self) -> DataFrame | None:

0 commit comments

Comments
 (0)