Skip to content

Commit

Permalink
MAINT: Add type assertions for labelarray_where.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Apr 27, 2020
1 parent 6ca266c commit 3eb9a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zipline/lib/labelarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ def __lt__(self, other):
return True


@expect_types(trues=LabelArray, falses=LabelArray)
def labelarray_where(cond, trues, falses):
"""LabelArray-aware implementation of np.where.
"""
Expand Down

0 comments on commit 3eb9a71

Please sign in to comment.