MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / __eq__

Method __eq__

src/dotenv/variables.py:56–59  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

54 return f"Variable(name={self.name}, default={self.default})"
55
56 def __eq__(self, other: object) -> bool:
57 if not isinstance(other, self.__class__):
58 return NotImplemented
59 return (self.name, self.default) == (other.name, other.default)
60
61 def __hash__(self) -> int:
62 return hash((self.__class__, self.name, self.default))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected