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

Function merge_args

xarray/tests/test_units.py:284–291  ·  view source on GitHub ↗
(default_args, new_args)

Source from the content-addressed store, hash-verified

282
283
284def merge_args(default_args, new_args):
285 from itertools import zip_longest
286
287 fill_value = object()
288 return [
289 second if second is not fill_value else first
290 for first, second in zip_longest(default_args, new_args, fillvalue=fill_value)
291 ]
292
293
294class method:

Callers 2

__call__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…