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

Method _get_unclosed_file

xarray/backends/file_manager.py:379–384  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

377 return getattr(self, "_file", None) is None
378
379 def _get_unclosed_file(self) -> T_File:
380 if self._closed:
381 raise RuntimeError("file is closed")
382 file = self._file
383 assert file is not None
384 return file
385
386 def acquire(self, needs_lock: bool = True) -> T_File:
387 del needs_lock # unused

Callers 3

acquireMethod · 0.95
acquire_contextMethod · 0.95
closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected