From 152a3ea3b43dc9cbad264238b2767264af942ea4 Mon Sep 17 00:00:00 2001 From: htfab Date: Thu, 5 Dec 2024 04:44:12 +0100 Subject: [PATCH] fix: use 'is' for type comparison as suggested by new flake8 --- config_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_utils.py b/config_utils.py index 4605475..8f5a509 100644 --- a/config_utils.py +++ b/config_utils.py @@ -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)