-
-
Notifications
You must be signed in to change notification settings - Fork 37
Review Column annotations #2
Comments
@zero323,
The error is We actually do have a proper annotation for |
@harpaj Indeed, it looks like it should be safe to remove However I don't think that's really the source of the problem here. With expr: Column = 1 + col("b") It looks like the problem is more that we don't have dependent types here, and mypy cannot infer that
If you want sum([F.col("sim"), F.col("weight")], lit(0)) |
Partially addressed by #194 |
This issue haven't seen any activity in a while. |
Currently there is a number of problems with
pyspark.sql.column
annotations. Some are related to the Mypy behavior:other, like
bitwise*
to the vague upstream semantics (should we allowAny
if the only literal type acceptable on runtime isint
?).The text was updated successfully, but these errors were encountered: