MCPcopy
hub / github.com/pydata/xarray / test_string_keys_typing

Function test_string_keys_typing

xarray/tests/test_dataset.py:8389–8395  ·  view source on GitHub ↗

Tests that string keys to `variables` are permitted by mypy

()

Source from the content-addressed store, hash-verified

8387
8388
8389def test_string_keys_typing() -> None:
8390 """Tests that string keys to `variables` are permitted by mypy"""
8391
8392 da = xr.DataArray(np.arange(10), dims=["x"])
8393 ds = xr.Dataset(dict(x=da))
8394 mapping = {"y": da}
8395 ds.assign(variables=mapping)
8396
8397
8398def test_transpose_error() -> None:

Callers

nothing calls this directly

Calls 2

assignMethod · 0.95
arangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…