Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Add ml.functions stub with vector_to_array (#317)
Browse files Browse the repository at this point in the history
* Add ml.functions stub with vector_to_array

* Add since annotation
  • Loading branch information
zero323 authored Jan 15, 2020
1 parent 46888ba commit bbc8cb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/3/pyspark/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Stubs for pyspark (Python 3)
#

from typing import Callable, TypeVar

from pyspark.status import *
from pyspark.accumulators import Accumulator as Accumulator, AccumulatorParam as AccumulatorParam
from pyspark.broadcast import Broadcast as Broadcast
Expand All @@ -17,6 +19,10 @@ from pyspark.taskcontext import BarrierTaskContext as BarrierTaskContext, Barrie
# Compatiblity imports
from pyspark.sql import SQLContext, Row

T = TypeVar("T")

def since(version: str) -> Callable[[T], T]: ...

# Names in __all__ with no definition:
# SparkJobInfo
# SparkStageInfo
Expand Down
4 changes: 4 additions & 0 deletions third_party/3/pyspark/ml/functions.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pyspark import SparkContext as SparkContext, since as since
from pyspark.sql.column import Column as Column

def vector_to_array(col: Column) -> Column: ...

0 comments on commit bbc8cb8

Please sign in to comment.