Skip to content

Commit 33d3ccb

Browse files
committed
Fixed possible issues uncovered by latest mypy
1 parent 4d26843 commit 33d3ccb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

treecript/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def metrics_parser(
171171
pids["parent"] = pids.apply(
172172
lambda row: str(row.ppid_create_time) + "_" + str(row.PPID)
173173
if not pd.isna(row.PPID)
174-
else None,
174+
else pd.NA,
175175
axis=1,
176176
)
177177

@@ -211,7 +211,7 @@ def metrics_parser(
211211
pids["command"] = main_commands
212212
pids["command_label"] = command_labels
213213
pids["full_command"] = full_command
214-
pids["full_stats"] = full_stats
214+
pids["full_stats"] = pd.array(full_stats)
215215
pids["subtree_root"] = subtree_root
216216

217217
return pids, num_cpu_cores, sampling_period_seconds

0 commit comments

Comments
 (0)