@finalclass TeardownReportWhat a teardown did, and what it left behind.
Returned rather than raised — see the module docs.
Constructor
Section titled “Constructor”TeardownReport declares no __new__ or __init__, so it is not constructed directly: an instance comes back from another call in this package.
Properties
Section titled “Properties”failures
Section titled “failures”failures: list[str]Every failure the teardown swallowed, in the order it hit them.
Kept because a teardown that never raises is a teardown whose failures are invisible otherwise, and the first one is usually the cause of the rest.
image_deleted
Section titled “image_deleted”image_deleted: bool | NoneWhether the image was deleted, or None when deletion was not asked for.
leaked
Section titled “leaked”leaked: boolWhether anything a caller asked for was left behind.
lifecycle
Section titled “lifecycle”lifecycle: str | NoneThe lifecycle state the sandbox ended in.
Commonly "TERMINATING" rather than "TERMINATED": the default teardown does not
wait, so claiming TERMINATED would claim an observation nobody made. Pass
wait_for_terminated=True to observe it.
terminate_accepted
Section titled “terminate_accepted”terminate_accepted: boolWhether the terminate call was accepted.
undeleted
Section titled “undeleted”undeleted: list[str]Identifiers of everything a caller asked to have deleted that still exists.
Identifiers rather than a boolean, because a leak nobody can name is a leak nobody can clean up. Two things land here: a delete that was attempted and failed, and the build log group, which this client cannot delete at all.
Methods
Section titled “Methods”to_dict
Section titled “to_dict”def to_dict() -> dictThe report as a dict, for a JSON envelope.
Special methods
Section titled “Special methods”__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.