From 7b8efe310579cd9613d38c4245626b33f604e4b1 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Tue, 26 Aug 2025 01:38:40 +0200 Subject: [PATCH] Remove `Optional` annotation The is inconsistent with the type annotation of `TestPass.duration_ms`. The function is only called with `duration_ms` as an int, so there is no need to declare it `Optional`. --- tests/test_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_driver.py b/tests/test_driver.py index 5c7cf15dc..16d40f697 100755 --- a/tests/test_driver.py +++ b/tests/test_driver.py @@ -268,7 +268,7 @@ class TestPass: arg: str duration_ms: int - def __init__(self, arg: str, duration_ms: Optional[int]): + def __init__(self, arg: str, duration_ms: int): self.arg = arg self.duration_ms = duration_ms