From 637ccadcb66148044f463fb95117317fea9d4028 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 3 Feb 2021 13:43:06 +0100 Subject: [PATCH] style(core): remove unused type:ignore comment after mypy upgrade --- core/src/trezor/loop.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/trezor/loop.py b/core/src/trezor/loop.py index a16fca601..aec59ad01 100644 --- a/core/src/trezor/loop.py +++ b/core/src/trezor/loop.py @@ -184,9 +184,7 @@ def _step(task: Task, value: Any) -> None: this_task = task try: if isinstance(value, BaseException): - result = task.throw(value) # type: ignore - # error: Argument 1 to "throw" of "Coroutine" has incompatible type "Exception"; expected "Type[BaseException]" - # rationale: In micropython, generator.throw() accepts the exception object directly. + result = task.throw(value) else: result = task.send(value) except StopIteration as e: