DrEthan9608 opened a new pull request, #59456:
URL: https://github.com/apache/spark/pull/59456

       ### What changes were proposed in this pull request?
   
       Replace `type: ignore[var-annotated]` on `__cls` with an explicit 
`dict[tuple, type]` annotation in `pyspark/serializers.py`.
   
       ### Why are the changes needed?
   
       mypy cannot infer the type of an empty dict literal, so the suppression 
hid the real type. Adding an explicit type annotation removes the need for `# 
type: ignore[var-annotated]`.
   
       ### Does this PR introduce _any_ user-facing change?
   
       No.
   
       ### How was this patch tested?
   
       - `mypy --config-file python/mypy.ini --follow-imports=silent 
python/pyspark/serializers.py` passed with 0 errors.
       - `ruff check python/pyspark/serializers.py` passed.
       - `./python/run-tests --testnames pyspark.tests.test_serializers` passed.
   
       ### Was this patch authored or co-authored using generative AI tooling?
   
       Generated-by: Antigravity CLI v1.3.4 (Gemini 3.8 Flash)


-- 
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]

Reply via email to