Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald committed Sep 18, 2024
1 parent 9133a9a commit f544d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyterrier/apply_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def _feature_fn(row):
pipe = pt.terrier.Retriever(index) >> pt.apply.doc_features(_feature_fn) >> pt.LTRpipeline(xgBoost())
"""
def __init__(self,
fn: Callable[[pd.Series, pt.model.IterDictRecord], np.array],
fn: Callable[[Union[pd.Series, pt.model.IterDictRecord]], np.array],
*,
verbose: bool = False
):
Expand Down

0 comments on commit f544d2f

Please sign in to comment.