Skip to content

Commit

Permalink
use isinstance in Flatten.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Oct 12, 2023
1 parent dea3e11 commit 32ee6e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def value(item):
class Flatten(DaskBagOp):
"""Produces a flattened bag from a collection of bags."""
def apply(self, input_bag: t.List[db.Bag]) -> db.Bag:
assert type(input_bag) is list, 'Must take a sequence of bags!'
assert isinstance(input_bag, list), 'Must take a sequence of bags!'
return db.concat(input_bag)


Expand Down

0 comments on commit 32ee6e1

Please sign in to comment.