From 02ef9b1e596543bd588c273844f6299bee816749 Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Tue, 14 Jan 2025 09:52:19 -0600 Subject: [PATCH] Add type annotation for max_processes_sample --- test/test_e2e.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_e2e.py b/test/test_e2e.py index 62496f7..eb91783 100644 --- a/test/test_e2e.py +++ b/test/test_e2e.py @@ -2,6 +2,7 @@ import json from pathlib import Path import subprocess +from typing import Dict import pytest ABANDONING_PARENT = str(Path(__file__).with_name("data") / "abandoning_parent.sh") @@ -21,7 +22,7 @@ def test_abandoning_parent(temp_output_dir: str, num_children: int) -> None: with open(f"{duct_prefix}usage.json") as usage_file: all_samples = [json.loads(line) for line in usage_file] - max_processes_sample = {"processes": {}} + max_processes_sample: Dict[str, Dict] = {"processes": {}} for sample in all_samples: if len(max_processes_sample) < len(sample.get("processes")): max_processes_sample = sample