MCPcopy
hub / github.com/encode/httpx / __eq__

Method __eq__

httpx/_urls.py:618–621  ·  view source on GitHub ↗
(self, other: typing.Any)

Source from the content-addressed store, hash-verified

616 return hash(str(self))
617
618 def __eq__(self, other: typing.Any) -> bool:
619 if not isinstance(other, self.__class__):
620 return False
621 return sorted(self.multi_items()) == sorted(other.multi_items())
622
623 def __str__(self) -> str:
624 return urlencode(self.multi_items())

Callers

nothing calls this directly

Calls 1

multi_itemsMethod · 0.95

Tested by

no test coverage detected