dongjoon-hyun commented on PR #49535: URL: https://github.com/apache/spark/pull/49535#issuecomment-2617491112
Hi, @allisonwang-db , @ueshin , @HyukjinKwon . Although this passed CIs, it seems that this causes Python linter failures at both master/branch-4.0 branches. Could you check them please? - `master`: https://github.com/apache/spark/actions/runs/13001188421/job/36260099936 - `branch-4.0`: https://github.com/apache/spark/actions/runs/13001191589/job/36260101973 ``` starting mypy annotations test... annotations failed mypy checks: python/pyspark/ml/classification.py:3578: error: Function is missing a return type annotation [no-untyped-def] python/pyspark/ml/classification.py:3598: error: Incompatible return value type (got "tuple[int, Any]", expected "CM") [return-value] python/pyspark/ml/classification.py:3616: error: Argument "models" to "OneVsRestModel" has incompatible type "list[None]"; expected "list[ClassificationModel]" [arg-type] python/pyspark/ml/connect/readwrite.py:198: error: Incompatible types in assignment (expression has type "OneVsRestWriter", variable has type "Write") [assignment] python/pyspark/ml/connect/readwrite.py:199: error: "Write" has no attribute "session" [attr-defined] python/pyspark/ml/connect/readwrite.py:200: error: "Write" has no attribute "save" [attr-defined] python/pyspark/ml/connect/readwrite.py:209: error: Incompatible types in assignment (expression has type "OneVsRestModelWriter", variable has type "Write") [assignment] python/pyspark/ml/connect/readwrite.py:210: error: "Write" has no attribute "session" [attr-defined] python/pyspark/ml/connect/readwrite.py:211: error: "Write" has no attribute "save" [attr-defined] Found 9 errors in 2 files (checked 1083 source files) 1 Error: Process completed with exit code 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
