Skip to content

Commit

Permalink
refactor(core): update and unify type ignore statements
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
M1nd3r committed Nov 14, 2024
1 parent bc725b6 commit a003920
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/trezor/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def exception(name: str, exc: BaseException) -> None:
name,
_DEBUG,
"ui.Result: %s",
exc.value, # type: ignore[Cannot access attribute "value" for class "BaseException"]
exc.value, # type: ignore [Cannot access attribute "value" for class "BaseException"]
)
elif exc.__class__.__name__ == "Cancelled":
_log(name, _DEBUG, "ui.Cancelled")
Expand Down
7 changes: 6 additions & 1 deletion core/src/trezor/ui/layouts/tr/reset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Awaitable, Sequence
from typing import TYPE_CHECKING

import trezorui2
from trezor import TR
Expand All @@ -9,6 +9,11 @@

CONFIRMED = trezorui2.CONFIRMED # global_import_cache

if TYPE_CHECKING:
from typing import Awaitable, Sequence

pass


async def show_share_words(
share_words: Sequence[str],
Expand Down

0 comments on commit a003920

Please sign in to comment.