Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
machichima committed Jan 30, 2025
1 parent 07ae55d commit 428a66d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions obstore/python/obstore/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import fsspec.spec

import obstore as obs
from obstore import open_reader, open_writer
from obstore import open_writer


class AsyncFsspecStore(fsspec.asyn.AsyncFileSystem):
Expand Down Expand Up @@ -199,7 +199,10 @@ async def _ls(self, path, detail=True, **kwargs):

def _open(self, path, mode="rb", **kwargs):
"""Return raw bytes-mode file-like from the file-system"""
assert mode in ("rb", "wb"), f"Only 'rb' and 'wb' mode is currently supported, got: {mode}"
assert mode in (
"rb",
"wb",
), f"Only 'rb' and 'wb' mode is currently supported, got: {mode}"
if mode == "wb":
return BufferedFileWrite(self, path, mode, **kwargs)
if mode == "rb":
Expand Down

0 comments on commit 428a66d

Please sign in to comment.