MCPcopy
hub / github.com/google/python-fire / GetResult

Method GetResult

fire/trace.py:63–65  ·  view source on GitHub ↗

Returns the component from the last element of the trace.

(self)

Source from the content-addressed store, hash-verified

61 self.show_trace = show_trace
62
63 def GetResult(self):
64 """Returns the component from the last element of the trace."""
65 return self.GetLastHealthyElement().component
66
67 def GetLastHealthyElement(self):
68 """Returns the last element of the trace that is not an error.

Callers 5

FireFunction · 0.80
_IsHelpShortcutFunction · 0.80
_PrintResultFunction · 0.80
_DisplayErrorFunction · 0.80

Calls 1

GetLastHealthyElementMethod · 0.95

Tested by 1