dchvn opened a new pull request #35236:
URL: https://github.com/apache/spark/pull/35236
### What changes were proposed in this pull request?
Raise TypeError with no return function
### Why are the changes needed?
Raise TypeError with no return function
### Does this PR introduce _any_ user-facing change?
Yes, after this PR user will take an exception when infer return type of
function with no return.
```python-traceback
>>> from pyspark.pandas.typedef.typehints import infer_return_type
>>> def f():
... pass
...
>>> infer_return_type(f)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/u02/spark/python/pyspark/pandas/typedef/typehints.py", line 563, in
infer_return_type
raise TypeError("Unsupported callable")
TypeError: Unsupported callable
```
### How was this patch tested?
unit test
--
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]