diff --git a/.github/workflows/lint-global.yml b/.github/workflows/lint-global.yml index 95f9957b5309..031bac502548 100644 --- a/.github/workflows/lint-global.yml +++ b/.github/workflows/lint-global.yml @@ -15,4 +15,4 @@ jobs: - name: Lint Markdown and TOML uses: dprint/check@v2.2 - name: Spell Check with Typos - uses: crate-ci/typos@v1.26.8 + uses: crate-ci/typos@v1.27.2 diff --git a/py-polars/requirements-lint.txt b/py-polars/requirements-lint.txt index b6c173bf8320..9c216431c84c 100644 --- a/py-polars/requirements-lint.txt +++ b/py-polars/requirements-lint.txt @@ -1,3 +1,3 @@ mypy[faster-cache]==1.13.0 ruff==0.7.1 -typos==1.26.8 +typos==1.27.2 diff --git a/py-polars/tests/unit/constructors/test_dataframe.py b/py-polars/tests/unit/constructors/test_dataframe.py index 251ec5e7bce2..e885919294d1 100644 --- a/py-polars/tests/unit/constructors/test_dataframe.py +++ b/py-polars/tests/unit/constructors/test_dataframe.py @@ -59,7 +59,7 @@ def test_df_init_from_generator_dict_view() -> None: data = { "keys": d.keys(), "vals": d.values(), - "itms": d.items(), + "items": d.items(), } with pytest.raises(TypeError, match="unexpected value"): pl.DataFrame(data, strict=True) @@ -68,12 +68,12 @@ def test_df_init_from_generator_dict_view() -> None: assert df.schema == { "keys": pl.Int64, "vals": pl.String, - "itms": pl.List(pl.String), + "items": pl.List(pl.String), } assert df.to_dict(as_series=False) == { "keys": [0, 1, 2], "vals": ["x", "y", "z"], - "itms": [["0", "x"], ["1", "y"], ["2", "z"]], + "items": [["0", "x"], ["1", "y"], ["2", "z"]], } @@ -86,19 +86,19 @@ def test_df_init_from_generator_reversed_dict_view() -> None: data = { "rev_keys": reversed(d.keys()), "rev_vals": reversed(d.values()), - "rev_itms": reversed(d.items()), + "rev_items": reversed(d.items()), } - df = pl.DataFrame(data, schema_overrides={"rev_itms": pl.Object}) + df = pl.DataFrame(data, schema_overrides={"rev_items": pl.Object}) assert df.schema == { "rev_keys": pl.Int64, "rev_vals": pl.String, - "rev_itms": pl.Object, + "rev_items": pl.Object, } assert df.to_dict(as_series=False) == { "rev_keys": [2, 1, 0], "rev_vals": ["z", "y", "x"], - "rev_itms": [(2, "z"), (1, "y"), (0, "x")], + "rev_items": [(2, "z"), (1, "y"), (0, "x")], }