Skip to content

Commit 3e432a3

Browse files
committed
feat: change function property to cached_property for performance improvement
1 parent 6c3d85d commit 3e432a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scubatrace/statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def file(self) -> File:
258258
return self.parent
259259
return self.parent.file
260260

261-
@property
261+
@cached_property
262262
def function(self) -> Function | None:
263263
"""
264264
The function this statement belongs to, if any.

0 commit comments

Comments
 (0)