Skip to content

Commit

Permalink
fix: use 'is' for type comparison as suggested by new flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
htfab authored and urish committed Dec 5, 2024
1 parent 5627810 commit 152a3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 152a3ea

Please sign in to comment.