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:
parent
a774a0bf98
commit
8a6fcda60c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user