sven-weber-db commented on code in PR #55716:
URL: https://github.com/apache/spark/pull/55716#discussion_r3281661426
##########
python/pyspark/worker_util.py:
##########
@@ -65,11 +67,11 @@ def add_path(path: str) -> bool:
return False
-def read_command(serializer: FramedSerializer, file: Union[IO, bytes]) -> Any:
+def read_command(serializer: FramedSerializer, file: Union[IO, memoryview]) ->
Any:
Review Comment:
Yes, that makes sense. I can understand your concern. Both `bytes` and
`memoryview` should work with these changes. Let me update the type signature
accordingly.
--
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]