Closed seandavi closed 7 months ago
See behavior difference with "file://filename" uri vs "filename" uri with compression.
>>> print(upath.__version__) 0.1.4 >>> a = UPath('abc.json.gz') >>> a.open('wb', compression='gzip') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: open() got an unexpected keyword argument 'compression' >>> >>> a = UPath('file:///tmp/abc.json.gz') >>> a.open('wb', compression='gzip') <gzip fsspec.implementations.local.LocalFileOpener object at 0x1028548b0 0x1034b1f40>
Thank you for reporting @seandavi ❤️
We should align the method signatures and raise a warning for stdlib pathlib in this case.
Would you be willing to work on a PR?
Cheers, Andreas
See behavior difference with "file://filename" uri vs "filename" uri with compression.