MCPcopy Create free account
hub / github.com/dimastbk/python-calamine / close

Method close

src/types/workbook.rs:267–275  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

265 }
266
267 fn close(&mut self) -> PyResult<()> {
268 match self.sheets {
269 SheetsEnum::None => Err(Error::WorkbookClosed.into()),
270 _ => {
271 self.sheets = SheetsEnum::None;
272 Ok(())
273 }
274 }
275 }
276
277 fn __enter__(slf: Py<Self>) -> Py<Self> {
278 slf

Callers 3

__exit__Method · 0.80
test_close_workbookFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_close_workbookFunction · 0.64