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

Method resolve

src/dotenv/variables.py:64–67  ·  view source on GitHub ↗
(self, env: Mapping[str, Optional[str]])

Source from the content-addressed store, hash-verified

62 return hash((self.__class__, self.name, self.default))
63
64 def resolve(self, env: Mapping[str, Optional[str]]) -> str:
65 default = self.default if self.default is not None else ""
66 result = env.get(self.name, default)
67 return result if result is not None else ""
68
69
70def parse_variables(value: str) -> Iterator[Atom]:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected