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

Method acquire

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

Source from the content-addressed store, hash-verified

384 return file
385
386 def acquire(self, needs_lock: bool = True) -> T_File:
387 del needs_lock # unused
388 return self._get_unclosed_file()
389
390 @contextmanager
391 def acquire_context(self, needs_lock: bool = True) -> Iterator[T_File]:

Calls 1

_get_unclosed_fileMethod · 0.95