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

   ### What changes were proposed in this pull request?
   
   This is a follow-up of #53223.
   
   Fixes a typehint using ellipsis that are not available as type arguments in 
Python 3.10.
   
   ### Why are the changes needed?
   
   #53223 caused a test failure in Python 3.10 tests:
   
   ```
     File "/__w/spark/spark/python/pyspark/testing/connectutils.py", line 312, 
in <module>
       ) -> Callable[[...], ...]:
            ^^^^^^^^^^^^^^^^^^^^
     File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1206, in 
__getitem__
       return self.__getitem_inner__(params)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 312, in inner
       return func(*args, **kwds)
              ^^^^^^^^^^^^^^^^^^^
     File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1212, in 
__getitem_inner__
       result = _type_check(result, msg)
                ^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 176, in 
_type_check
       raise TypeError(f"{msg} Got {arg!r:.100}.")
   TypeError: Callable[args, result]: result must be a type. Got Ellipsis.
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   The existing tests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


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