MCPcopy Index your code
hub / github.com/pydata/xarray / _get_cached_duck_array_module

Function _get_cached_duck_array_module

xarray/namedarray/pycompat.py:72–78  ·  view source on GitHub ↗
(mod: ModType)

Source from the content-addressed store, hash-verified

70
71
72def _get_cached_duck_array_module(mod: ModType) -> DuckArrayModule:
73 if mod not in _cached_duck_array_modules:
74 duckmod = DuckArrayModule(mod)
75 _cached_duck_array_modules[mod] = duckmod
76 return duckmod
77 else:
78 return _cached_duck_array_modules[mod]
79
80
81def array_type(mod: ModType) -> DuckArrayTypes:

Callers 2

array_typeFunction · 0.85
mod_versionFunction · 0.85

Calls 1

DuckArrayModuleClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…