MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / _read_env_file

Method _read_env_file

nonebot/config.py:114–116  ·  view source on GitHub ↗
(self, file_path: Path)

Source from the content-addressed store, hash-verified

112 }
113
114 def _read_env_file(self, file_path: Path) -> dict[str, str | None]:
115 file_vars = dotenv_values(file_path, encoding=self.env_file_encoding)
116 return self._parse_env_vars(file_vars)
117
118 def _read_env_files(self) -> dict[str, str | None]:
119 env_files = self.env_file

Callers 1

_read_env_filesMethod · 0.95

Calls 1

_parse_env_varsMethod · 0.95

Tested by

no test coverage detected