Skip to content

Commit cc9dfd9

Browse files
committed
Move comment line to the right place
1 parent 3e288a8 commit cc9dfd9

File tree

1 file changed

+1
-1
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+1
-1
lines changed

src/nested_pandas/nestedframe/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ def _transform_read_parquet_data_arg(data):
179179
# Check if a file-like object
180180
if hasattr(data, "read"):
181181
return data, None
182-
# Check if `data` is a Path
183182
# Check if `data` is a UPath and use it
184183
if isinstance(data, UPath):
185184
return data.path, data.fs
185+
# Check if `data` is a Path (Path is a superclass for UPath, so this order of checks)
186186
if isinstance(data, Path):
187187
return data, None
188188
# It should be a string now

0 commit comments

Comments
 (0)