Skip to content

Fix spelling #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyogrio/_io.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def ogr_read(
fids = np.asarray(fids, dtype=np.intc)

if sql is not None and layer is not None:
raise ValueError("'sql' paramater cannot be combined with 'layer'")
raise ValueError("'sql' parameter cannot be combined with 'layer'")

if not (read_geometry or return_fids or columns is None or len(columns) > 0):
raise ValueError(
Expand Down Expand Up @@ -1467,7 +1467,7 @@ def ogr_open_arrow(
)

if sql is not None and layer is not None:
raise ValueError("'sql' paramater cannot be combined with 'layer'")
raise ValueError("'sql' parameter cannot be combined with 'layer'")

if not (read_geometry or return_fids or columns is None or len(columns) > 0):
raise ValueError(
Expand Down Expand Up @@ -2739,4 +2739,4 @@ cdef create_fields_from_arrow_schema(
f"Error while creating field from Arrow for field {i} with name "
f"'{get_string(child.name)}' and type {get_string(child.format)}"
f"{gdal_msg}."
)
)
2 changes: 1 addition & 1 deletion pyogrio/tests/test_geopandas_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def test_read_sql_invalid(naturalearth_lowres_all_ext, use_arrow):
)

with pytest.raises(
ValueError, match="'sql' paramater cannot be combined with 'layer'"
ValueError, match="'sql' parameter cannot be combined with 'layer'"
):
read_dataframe(
naturalearth_lowres_all_ext,
Expand Down
Loading