From b42f757e5546ecb296a5521774c2f03deb6578b1 Mon Sep 17 00:00:00 2001 From: Nathan van Beelen Date: Wed, 28 Feb 2024 13:03:42 +0100 Subject: [PATCH] Fix lint issues reported by black --- sashimi/config.py | 2 +- sashimi/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sashimi/config.py b/sashimi/config.py index 69a16193..63dd291b 100644 --- a/sashimi/config.py +++ b/sashimi/config.py @@ -123,7 +123,7 @@ def write_config_value(dict_path, val, file_path=CONFIG_PATH): """ # Ensure path to entry is always a string: - if type(dict_path) == str: + if type(dict_path) is str: dict_path = [dict_path] # Read and set: diff --git a/sashimi/utilities.py b/sashimi/utilities.py index e8dfee6f..9e4de071 100644 --- a/sashimi/utilities.py +++ b/sashimi/utilities.py @@ -52,7 +52,7 @@ def clean_json(d): return clean_json(asdict(d)) elif type(d) in [tuple, list]: # json seems to have issues serializing np.int32: - if type(d[0]) == np.int32: + if type(d[0]) is np.int32: d = [int(i) for i in d] return d else: