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

Method __call__

xarray/tests/test_units.py:375–379  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

373 self.kwargs = kwargs
374
375 def __call__(self, *args, **kwargs):
376 all_args = merge_args(self.args, args)
377 all_kwargs = {**self.kwargs, **kwargs}
378
379 return self.func(*all_args, **all_kwargs)
380
381 def __repr__(self):
382 return f"function_{self.name}"

Callers

nothing calls this directly

Calls 2

merge_argsFunction · 0.85
funcMethod · 0.45

Tested by

no test coverage detected