This is about zipfile.Path. The doc says it is compatible to pathlib.Path. But it seems that is not for 100% because it doesn't derive from pathlib.PurePath and can treated as Path-like in all situations.
I was redirected from pandas where I opened an issue about the fact that pandas.read_excel() does accept path-like objects but not zipfile.Path. It was explained to me that zipfile.Path doesn't implement __fspath__ and that is the problem.
Linked PRs
This is about
zipfile.Path. The doc says it is compatible topathlib.Path. But it seems that is not for 100% because it doesn't derive frompathlib.PurePathand can treated as Path-like in all situations.I was redirected from
pandaswhere I opened an issue about the fact thatpandas.read_excel()does accept path-like objects but notzipfile.Path. It was explained to me thatzipfile.Pathdoesn't implement__fspath__and that is the problem.Linked PRs