Skip to content

Commit

Permalink
update typing for extractStateIntervals
Browse files Browse the repository at this point in the history
  • Loading branch information
R7L208 committed Aug 10, 2022
1 parent 6f795b9 commit 67bca9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tempo/tsdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ def extractStateIntervals(
"""

# https://spark.apache.org/docs/latest/sql-ref-null-semantics.html#comparison-operators-
def null_safe_equals(col1: Column, col2: Column) -> Column[bool]:
def null_safe_equals(col1: Column, col2: Column) -> Column:
return (
f.when(col1.isNull() & col2.isNull(), True)
.when(col1.isNull() | col2.isNull(), False)
Expand Down

0 comments on commit 67bca9e

Please sign in to comment.