Skip to content

Commit

Permalink
Fix lint issues reported by black
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbln committed Feb 28, 2024
1 parent d749689 commit b42f757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sashimi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sashimi/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b42f757

Please sign in to comment.