mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-07 10:46:06 +00:00
chore(style): apply pylint suggestion on site_scons python files
[no changelog]
This commit is contained in:
parent
44ff6d42b3
commit
db9f76df0d
@ -39,7 +39,7 @@ def configure_board(
|
|||||||
defines: list[str | tuple[str, str]],
|
defines: list[str | tuple[str, str]],
|
||||||
sources: list[str],
|
sources: list[str],
|
||||||
paths: list[str],
|
paths: list[str],
|
||||||
):
|
) -> list[str]:
|
||||||
model_r_version = 10
|
model_r_version = 10
|
||||||
|
|
||||||
if model in ("1",):
|
if model in ("1",):
|
||||||
@ -55,10 +55,10 @@ def configure_board(
|
|||||||
return trezor_r_v6.configure(env, features_wanted, defines, sources, paths)
|
return trezor_r_v6.configure(env, features_wanted, defines, sources, paths)
|
||||||
elif model_r_version == 10:
|
elif model_r_version == 10:
|
||||||
return trezor_r_v10.configure(env, features_wanted, defines, sources, paths)
|
return trezor_r_v10.configure(env, features_wanted, defines, sources, paths)
|
||||||
|
raise Exception("Unknown model_r_version")
|
||||||
elif model in ("DISC1",):
|
elif model in ("DISC1",):
|
||||||
return discovery.configure(env, features_wanted, defines, sources, paths)
|
return discovery.configure(env, features_wanted, defines, sources, paths)
|
||||||
else:
|
raise Exception("Unknown model")
|
||||||
raise Exception("Unknown model")
|
|
||||||
|
|
||||||
|
|
||||||
def get_model_identifier(model: str) -> str:
|
def get_model_identifier(model: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user