Skip to content

Commit e706e9d

Browse files
committed
more precise type
Signed-off-by: Yuan Tang <[email protected]>
1 parent 467e8a0 commit e706e9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/profiler/layerwise_profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import copy
22
from collections import defaultdict
33
from dataclasses import asdict, dataclass, field
4-
from typing import Callable, Dict, List, Optional, Tuple, TypeAlias, Union
4+
from typing import Callable, Dict, List, Optional, Tuple, TypeAlias, Union, Any
55

66
import pandas as pd
77
from torch._C._autograd import DeviceType, _KinetoEvent, _ProfilerResult
@@ -128,7 +128,7 @@ def export_summary_stats_table_csv(self, filename: str):
128128
])
129129
df.to_csv(filename)
130130

131-
def convert_stats_to_dict(self) -> dict:
131+
def convert_stats_to_dict(self) -> dict[str, Any]:
132132
return {
133133
"metadata": {
134134
"num_running_seqs": self.num_running_seqs

0 commit comments

Comments
 (0)