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`.
This commit is contained in:
Daniel Rainer
2025-08-26 01:38:40 +02:00
committed by David Adam
parent 425d487de9
commit 7b8efe3105

View File

@@ -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