MCPcopy
hub / github.com/httpie/cli / __str__

Method __str__

httpie/context.py:123–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 self.quiet = kwargs.pop('quiet', 0)
122
123 def __str__(self):
124 defaults = dict(type(self).__dict__)
125 actual = dict(defaults)
126 actual.update(self.__dict__)
127 actual['config'] = self.config
128 return repr_dict({
129 key: value
130 for key, value in actual.items()
131 if not key.startswith('_')
132 })
133
134 def __repr__(self):
135 return f'<{type(self).__name__} {self}>'

Callers

nothing calls this directly

Calls 3

repr_dictFunction · 0.85
updateMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected