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

Method _parse_env_vars

nonebot/config.py:107–112  ·  view source on GitHub ↗
(
        self, env_vars: Mapping[str, str | None]
    )

Source from the content-addressed store, hash-verified

105 return False, False
106
107 def _parse_env_vars(
108 self, env_vars: Mapping[str, str | None]
109 ) -> dict[str, str | None]:
110 return {
111 self._apply_case_sensitive(key): value for key, value in env_vars.items()
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)

Callers 2

_read_env_fileMethod · 0.95
__call__Method · 0.95

Calls 2

_apply_case_sensitiveMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected