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

Method acquire_context

xarray/backends/file_manager.py:391–393  ·  view source on GitHub ↗
(self, needs_lock: bool = True)

Source from the content-addressed store, hash-verified

389
390 @contextmanager
391 def acquire_context(self, needs_lock: bool = True) -> Iterator[T_File]:
392 del needs_lock # unused
393 yield self._get_unclosed_file()
394
395 def close(self, needs_lock: bool = True) -> None:
396 if not self._closed:

Callers

nothing calls this directly

Calls 1

_get_unclosed_fileMethod · 0.95

Tested by

no test coverage detected