fix: use 'is' for type comparison as suggested by new flake8

This commit is contained in:
htfab
2024-12-05 08:47:49 +02:00
committed by Uri Shaked
parent 56278104af
commit 152a3ea3b4
+1 -1
View File
@@ -81,7 +81,7 @@ def write_mk_config(config: dict, file: str):
for key, value in config.items():
if type(value) in (list, tuple):
value = " ".join(value)
if type(value) == str:
if type(value) is str:
value = value.replace("dir::", "$(DESIGN_HOME)/")
print(f"export {key} = {value}", file=f)