MCPcopy
hub / github.com/encode/starlette / __repr__

Method __repr__

starlette/datastructures.py:569–574  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 return sorted(self._list) == sorted(other._list)
568
569 def __repr__(self) -> str:
570 class_name = self.__class__.__name__
571 as_dict = dict(self.items())
572 if len(as_dict) == len(self):
573 return f"{class_name}({as_dict!r})"
574 return f"{class_name}(raw={self.raw!r})"
575
576
577class MutableHeaders(Headers):

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.95

Tested by

no test coverage detected