Description
The following problems are detected on master with mypy 0.920
$ 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]