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

Method __eq__

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

Source from the content-addressed store, hash-verified

34 return f"Literal(value={self.value})"
35
36 def __eq__(self, other: object) -> bool:
37 if not isinstance(other, self.__class__):
38 return NotImplemented
39 return self.value == other.value
40
41 def __hash__(self) -> int:
42 return hash((self.__class__, self.value))

Callers 1

__ne__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected