Skip to content

Commit

Permalink
Prefer isinstance over type/is
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Jul 31, 2023
1 parent 7f7db33 commit 5602e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ def _freshen_items(items):

def _extend_pipeline(tasks, *stages):
# Return pipeline extension for stages with list of tasks
if type(tasks) is list:
if isinstance(tasks, list):
task_iter = iter(tasks)
else:
task_iter = tasks
Expand Down

0 comments on commit 5602e9a

Please sign in to comment.