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

Commit

Permalink
Merge pull request #521 from zero323/fail-on-stopiteration
Browse files Browse the repository at this point in the history
Annotate fail_on_stopiteration
  • Loading branch information
zero323 committed Sep 7, 2020
2 parents faad51c + bf9da07 commit 3371d6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion third_party/3/pyspark/_typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
# specific language governing permissions and limitations
# under the License.

from typing import Iterable, Sized, TypeVar, Union
from typing import Callable, Iterable, Sized, TypeVar, Union
from typing_extensions import Protocol

F = TypeVar("F", bound=Callable)
T = TypeVar("T", covariant=True)

PrimitiveType = Union[bool, float, int, str]
Expand Down
9 changes: 4 additions & 5 deletions third_party/3/pyspark/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Stubs for pyspark.util (Python 3.7)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any, Callable
from pyspark._typing import F

import threading
from typing import Any

def print_exec(stream: Any) -> None: ...

class VersionUtils:
@staticmethod
def majorMinorVersion(sparkVersion: Any): ...

def fail_on_stopiteration(f: Any): ...
def fail_on_stopiteration(f: F) -> F: ...

class InheritableThread(threading.Thread):
def __init__(self, target: Any, *args: Any, **kwargs: Any): ...
Expand Down

0 comments on commit 3371d6b

Please sign in to comment.