[ https://issues.apache.org/jira/browse/SPARK-36985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427966#comment-17427966 ]
Apache Spark commented on SPARK-36985: -------------------------------------- User 'ueshin' has created a pull request for this issue: https://github.com/apache/spark/pull/34266 > Future typing errors in pyspark.pandas > -------------------------------------- > > Key: SPARK-36985 > URL: https://issues.apache.org/jira/browse/SPARK-36985 > Project: Spark > Issue Type: Bug > Components: PySpark > Affects Versions: 3.3.0 > Reporter: Maciej Szymkiewicz > Priority: Minor > > The following problems are detected on master with mypy 0.920 > {code:java} > $ git rev-parse HEAD > 36b3bbc0aa9f9c39677960cd93f32988c7d7aaca > $ mypy --version > mypy 0.920+dev.332b712df848cd242987864b38bd237364654532 > $ mypy --config-file mypy.ini pyspark > pyspark/pandas/indexes/base.py:184: error: Incompatible types in assignment > (expression has type "CategoricalIndex", variable has type "MultiIndex") > [assignment] > pyspark/pandas/indexes/base.py:188: error: Incompatible types in assignment > (expression has type "Int64Index", variable has type "MultiIndex") > [assignment] > pyspark/pandas/indexes/base.py:192: error: Incompatible types in assignment > (expression has type "Float64Index", variable has type "MultiIndex") > [assignment] > pyspark/pandas/indexes/base.py:197: error: Incompatible types in assignment > (expression has type "DatetimeIndex", variable has type "MultiIndex") > [assignment] > pyspark/pandas/indexes/base.py:199: error: Incompatible types in assignment > (expression has type "Index", variable has type "MultiIndex") [assignment] > pyspark/pandas/indexes/base.py:201: error: "MultiIndex" has no attribute > "_anchor" [attr-defined] > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org