@@ -30,7 +30,7 @@ class RemoteStore(Store):
3030 ----------
3131 fs : AsyncFileSystem
3232 The Async FSSpec filesystem to use with this store.
33- readonly : bool
33+ read_only : bool
3434 Whether the store is read-only
3535 path : str
3636 The root path of the store. This should be a relative path and must not include the
@@ -77,11 +77,11 @@ class RemoteStore(Store):
7777 def __init__ (
7878 self ,
7979 fs : AsyncFileSystem ,
80- readonly : bool = False ,
80+ read_only : bool = False ,
8181 path : str = "/" ,
8282 allowed_exceptions : tuple [type [Exception ], ...] = ALLOWED_EXCEPTIONS ,
8383 ) -> None :
84- super ().__init__ (readonly = readonly )
84+ super ().__init__ (read_only = read_only )
8585 self .fs = fs
8686 self .path = path
8787 self .allowed_exceptions = allowed_exceptions
@@ -102,7 +102,7 @@ def __init__(
102102 def from_upath (
103103 cls ,
104104 upath : Any ,
105- readonly : bool = False ,
105+ read_only : bool = False ,
106106 allowed_exceptions : tuple [type [Exception ], ...] = ALLOWED_EXCEPTIONS ,
107107 ) -> RemoteStore :
108108 """
@@ -112,7 +112,7 @@ def from_upath(
112112 ----------
113113 upath : UPath
114114 The upath to the root of the store.
115- readonly : bool
115+ read_only : bool
116116 Whether the store is read-only, defaults to False.
117117 allowed_exceptions : tuple, optional
118118 The exceptions that are allowed to be raised when accessing the
@@ -125,7 +125,7 @@ def from_upath(
125125 return cls (
126126 fs = upath .fs ,
127127 path = upath .path .rstrip ("/" ),
128- readonly = readonly ,
128+ read_only = read_only ,
129129 allowed_exceptions = allowed_exceptions ,
130130 )
131131
@@ -134,7 +134,7 @@ def from_url(
134134 cls ,
135135 url : str ,
136136 storage_options : dict [str , Any ] | None = None ,
137- readonly : bool = False ,
137+ read_only : bool = False ,
138138 allowed_exceptions : tuple [type [Exception ], ...] = ALLOWED_EXCEPTIONS ,
139139 ) -> RemoteStore :
140140 """
@@ -146,7 +146,7 @@ def from_url(
146146 The URL to the root of the store.
147147 storage_options : dict, optional
148148 The options to pass to fsspec when creating the filesystem.
149- readonly : bool
149+ read_only : bool
150150 Whether the store is read-only, defaults to False.
151151 allowed_exceptions : tuple, optional
152152 The exceptions that are allowed to be raised when accessing the
@@ -173,7 +173,7 @@ def from_url(
173173 # `not path.startswith("http")` is a special case for the http filesystem (¯\_(ツ)_/¯)
174174 path = fs ._strip_protocol (path )
175175
176- return cls (fs = fs , path = path , readonly = readonly , allowed_exceptions = allowed_exceptions )
176+ return cls (fs = fs , path = path , read_only = read_only , allowed_exceptions = allowed_exceptions )
177177
178178 async def clear (self ) -> None :
179179 # docstring inherited
@@ -191,7 +191,7 @@ def __eq__(self, other: object) -> bool:
191191 return (
192192 isinstance (other , type (self ))
193193 and self .path == other .path
194- and self .readonly == other .readonly
194+ and self .read_only == other .read_only
195195 and self .fs == other .fs
196196 )
197197
0 commit comments