mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-28 00:01:31 +00:00
style(core): remove unused type:ignore comment after mypy upgrade
This commit is contained in:
parent
a1cd0b0949
commit
637ccadcb6
@ -184,9 +184,7 @@ def _step(task: Task, value: Any) -> None:
|
|||||||
this_task = task
|
this_task = task
|
||||||
try:
|
try:
|
||||||
if isinstance(value, BaseException):
|
if isinstance(value, BaseException):
|
||||||
result = task.throw(value) # type: ignore
|
result = task.throw(value)
|
||||||
# error: Argument 1 to "throw" of "Coroutine" has incompatible type "Exception"; expected "Type[BaseException]"
|
|
||||||
# rationale: In micropython, generator.throw() accepts the exception object directly.
|
|
||||||
else:
|
else:
|
||||||
result = task.send(value)
|
result = task.send(value)
|
||||||
except StopIteration as e:
|
except StopIteration as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user