MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / Literal

Class Literal

src/dotenv/variables.py:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class Literal(Atom):
30 def __init__(self, value: str) -> None:
31 self.value = value
32
33 def __repr__(self) -> str:
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))
43
44 def resolve(self, env: Mapping[str, Optional[str]]) -> str:
45 return self.value
46
47
48class Variable(Atom):

Callers 1

parse_variablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…