Skip to content

Commit eeefe41

Browse files
Apply ruff rule RUF021
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear This future rule is triggered in preview mode.
1 parent 083df8e commit eeefe41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/store/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _is_fsspec_uri(uri: str) -> bool:
137137
>>> _is_fsspec_uri("local://my-directory")
138138
False
139139
"""
140-
return "://" in uri or "::" in uri and "local://" not in uri
140+
return "://" in uri or ("::" in uri and "local://" not in uri)
141141

142142

143143
async def ensure_no_existing_node(store_path: StorePath, zarr_format: ZarrFormat) -> None:

0 commit comments

Comments
 (0)