Skip to content

Commit 040570d

Browse files
committed
Add return type annotation in MemoryFrame.from_event
1 parent 02f4980 commit 040570d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/profiling/plot_memory_timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MemoryFrame:
2424
device_id: int # -1 for CPU, 0+ for CUDA devices
2525

2626
@staticmethod
27-
def from_event(event: dict):
27+
def from_event(event: dict) -> "MemoryFrame":
2828
args = event["args"]
2929
return MemoryFrame(
3030
timestamp=event["ts"],

0 commit comments

Comments
 (0)