Skip to content

Commit 12e6389

Browse files
committed
chore(typing): ignore mypy for now
`from_modin` alias *should* type check okay after release w/ (python/mypy#19297) Keeping as-is, since `pyright` understands and `pylance` can re-use the docstring
1 parent 9f07071 commit 12e6389

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/frame/schema_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,10 @@ def test_schema_from_empty_mapping() -> None:
644644
assert nw.Schema.from_native({}) == expected
645645
assert nw.Schema.from_arrow({}) == expected
646646
assert nw.Schema.from_cudf({}) == expected
647-
assert nw.Schema.from_modin({}) == expected
647+
# NOTE: Long time `mypy` bug (https://github.com/python/mypy/issues/6700)
648+
# Fixed in (https://github.com/python/mypy/pull/19297)
649+
# Should become an `[unused-ignore]` for `mypy>=1.18`
650+
assert nw.Schema.from_modin({}) == expected # type: ignore[arg-type,call-arg,misc]
648651
assert nw.Schema.from_pandas({}) == expected
649652
assert nw.Schema.from_pandas_like({}) == expected
650653
assert nw.Schema.from_polars({}) == expected

0 commit comments

Comments
 (0)