test(core): add `wait` keyword argument to `InputFunc`
What changed, and why it matters
This is a tiny test-only change that adds a new optional keyword argument named 'wait' to a type definition used in Trezor's debug/testing tooling. It does not change any runtime behavior, device firmware, or security logic. There is no security issue here.
No action required. This is a benign test-infrastructure type annotation change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies a TYPE_CHECKING-only Protocol in python/src/trezorlib/debuglink.py, adding a ‘wait: bool | None = None’ parameter to the InputFunc.call signature. This is purely a type annotation update for the Python test harness’s debug-link input flow machinery. It affects no production code path and cannot be exploited.
Changed components
python/src/trezorlib/debuglink.py (test harness type stub only)Inspect captured patch +1 / −0
diff --git a/python/src/trezorlib/debuglink.py b/python/src/trezorlib/debuglink.py
index 0fde0a21..32d83ea9 100644
--- a/python/src/trezorlib/debuglink.py
+++ b/python/src/trezorlib/debuglink.py
@@ -59,6 +59,7 @@ if t.TYPE_CHECKING:
def __call__(
self,
hold_ms: int | None = None,
+ wait: bool | None = None,
) -> "None": ...
InputFlowType = t.Generator[None, messages.ButtonRequest, None]
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.