1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

chore(style): apply pylint suggestion on site_scons python files

[no changelog]
This commit is contained in:
grdddj 2023-07-17 16:15:20 +02:00 committed by Jiří Musil
parent 44ff6d42b3
commit db9f76df0d

View File

@ -39,7 +39,7 @@ def configure_board(
defines: list[str | tuple[str, str]],
sources: list[str],
paths: list[str],
):
) -> list[str]:
model_r_version = 10
if model in ("1",):
@ -55,10 +55,10 @@ def configure_board(
return trezor_r_v6.configure(env, features_wanted, defines, sources, paths)
elif model_r_version == 10:
return trezor_r_v10.configure(env, features_wanted, defines, sources, paths)
raise Exception("Unknown model_r_version")
elif model in ("DISC1",):
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: