Skip to content

Commit

Permalink
Use is in type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Oct 8, 2024
1 parent 8857b7e commit 2508741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def get_annotators(db_dir, annotators):
annotators = ann_list
else:
# In case they didn't input a list
if type(annotators) == str:
if type(annotators) is str:
annotators = [annotators]
# user input ones. Check validity.
for a in annotators:
Expand Down

0 comments on commit 2508741

Please # to comment.