zero323 commented on a change in pull request #34439:
URL: https://github.com/apache/spark/pull/34439#discussion_r753850759
##########
File path: python/pyspark/broadcast.py
##########
@@ -113,11 +141,11 @@ def dump(self, value, f):
raise pickle.PicklingError(msg)
f.close()
- def load_from_path(self, path):
+ def load_from_path(self, path: Any) -> T:
with open(path, "rb", 1 << 20) as f:
return self.load(f)
- def load(self, file):
+ def load(self, file: Any) -> T:
Review comment:
`path: str`?
--
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]