1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00

WIP - fix pyright

This commit is contained in:
grdddj 2024-01-02 15:14:28 +01:00
parent a774a0bf98
commit 8a6fcda60c

View File

@ -337,7 +337,7 @@ def _create_header_blob(
# Change language title (20 bytes)
# Needs to be ASCII because it will be shown with english ASCII-only fonts
assert change_language_title.isascii(), "Change language title should be ascii"
assert change_language_title.isascii(), "Change language title should be ascii" # type: ignore [Cannot access member "isascii"]
assert (
len(change_language_title.encode()) <= 20
), "Change language title is too long"
@ -345,7 +345,7 @@ def _create_header_blob(
# Change language prompt (40 bytes)
# Needs to be ASCII because it will be shown with english ASCII-only fonts
assert change_language_prompt.isascii(), "Change language prompt should be ascii"
assert change_language_prompt.isascii(), "Change language prompt should be ascii" # type: ignore [Cannot access member "isascii"]
assert (
len(change_language_prompt.encode()) <= 40
), "Change language prompt is too long"