You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/08 06:31:32 UTC
[GitHub] [spark] bzhaoopenstack commented on pull request #37117: [WIP][SPARK-39714][python] Try to fix the mypy annotation tests
bzhaoopenstack commented on PR #37117:
URL: https://github.com/apache/spark/pull/37117#issuecomment-1178607409
`python/pyspark/streaming/context.py:372: error: Unused "type: ignore" comment
python/pyspark/streaming/context.py:378: error: Unused "type: ignore" comment
spark@DESKTOP-U0I7MO9:~/upstream/spark$ python --version
Python 3.8.13
CI:
Run PYTHON_EXECUTABLE=python3.9 ./dev/lint-python
PYTHON_EXECUTABLE=python3.9 ./dev/lint-python
shell: sh -e {0}
env:
LC_ALL: C.UTF-8
LANG: C.UTF-8
PYSPARK_DRIVER_PYTHON: python3.9
PYSPARK_PYTHON: python3.9
JAVA_HOME_8.0.33[2](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:2)_x64: /__t/jdk/8.0.[3](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:3)32/x6[4](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:4)
JAVA_HOME: /__t/jdk/8.0.332/x[6](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:6)4
JAVA_HOME_8_0_332_X64: /__t/jdk/8.0.332/x64
starting python compilation test...
python compilation succeeded.
starting black test...
black checks passed.
starting flake8 test...
flake8 checks passed.
starting mypy annotations test...
annotations failed mypy checks:
python/pyspark/streaming/context.py:3[7](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:7)2: error: Argument 1 to "parallelize" of "SparkContext" has incompatible type "RDD[T]"; expected "Iterable[T]" [arg-type]
python/pyspark/streaming/context.py:37[8](https://github.com/bzhaoopenstack/spark/runs/7245194770?check_suite_focus=true#step:16:8): error: Argument 1 to "parallelize" of "SparkContext" has incompatible type "RDD[T]"; expected "Iterable[T]" [arg-type]
Found 2 errors in 1 file (checked 337 source files)
1
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org