MCPcopy Index your code
hub / github.com/python/mypy / expand_path

Function expand_path

mypy/config_parser.py:102–107  ·  view source on GitHub ↗

Expand the user home directory and any environment variables contained within the provided path.

(path: str)

Source from the content-addressed store, hash-verified

100
101
102def expand_path(path: str) -> str:
103 """Expand the user home directory and any environment variables contained within
104 the provided path.
105 """
106
107 return os.path.expandvars(os.path.expanduser(path))
108
109
110def str_or_array_as_list(v: str | Sequence[str]) -> list[str]:

Callers 2

config_parser.pyFile · 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…