chore(core): fix type hints for logging functions [no changelog]
What changed, and why it matters
This is a tiny type-hint cleanup in a logging helper. It changes the signature of an internal no-op function so that static type checkers better match how it is actually used. There is no runtime behavior change, no security fix, and no vulnerability.
No action required. This is a non-security code-quality change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit updates the stub _no_op in core/src/trezor/log.py from a generic *args: Any, **kwargs: Any signature to a concrete signature matching real logging functions (name: str, msg: str, *args: Any, iface: WireInterface | None = None). This only affects static analysis under TYPE_CHECKING; it does not alter executable code paths or fix any security issue.
Changed components
core/src/trezor/log.pyInspect captured patch +1 / −1
diff --git a/core/src/trezor/log.py b/core/src/trezor/log.py
index b12d08407..9d33cc4ec 100644
--- a/core/src/trezor/log.py
+++ b/core/src/trezor/log.py
@@ -6,7 +6,7 @@ if TYPE_CHECKING:
from typing import Any
-def _no_op(*args: Any, **kwargs: Any) -> None:
+def _no_op(name: str, msg: str, *args: Any, iface: WireInterface | None = None) -> None:
return 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.