Skip to content

Commit d2380e2

Browse files
authored
Merge pull request #93 from Point72/tkp/fixes
Fix type annotation for `csp.apply`
2 parents 7e9ad57 + 0ce2c99 commit d2380e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csp/baselib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def bitwise_not(x: ts[int]) -> ts[int]:
423423

424424

425425
@node()
426-
def apply(x: ts["T"], f: object, result_type: "U") -> ts["U"]:
426+
def apply(x: ts["T"], f: typing.Callable[["T"], "U"], result_type: "U") -> ts["U"]:
427427
"""
428428
:param x: The time series on which the function should be applied
429429
:param f: A scalar function that will be applied on each value of x

0 commit comments

Comments
 (0)