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

Method __init__

fire/trace.py:49–61  ·  view source on GitHub ↗
(self, initial_component, name=None, separator='-', verbose=False,
               show_help=False, show_trace=False)

Source from the content-addressed store, hash-verified

47 """
48
49 def __init__(self, initial_component, name=None, separator='-', verbose=False,
50 show_help=False, show_trace=False):
51 initial_trace_element = FireTraceElement(
52 component=initial_component,
53 action=INITIAL_COMPONENT,
54 )
55
56 self.name = name
57 self.separator = separator
58 self.elements = [initial_trace_element]
59 self.verbose = verbose
60 self.show_help = show_help
61 self.show_trace = show_trace
62
63 def GetResult(self):
64 """Returns the component from the last element of the trace."""

Callers

nothing calls this directly

Calls 1

FireTraceElementClass · 0.85

Tested by

no test coverage detected