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

Function split_and_match_files

mypy/config_parser.py:136–145  ·  view source on GitHub ↗

Take a string representing a list of files/directories (with support for globbing through the glob library). Where a path/glob matches no file, we still include the raw path in the resulting list. Returns a list of file paths

(paths: str)

Source from the content-addressed store, hash-verified

134
135
136def split_and_match_files(paths: str) -> list[str]:
137 """Take a string representing a list of files/directories (with support for globbing
138 through the glob library).
139
140 Where a path/glob matches no file, we still include the raw path in the resulting list.
141
142 Returns a list of file paths
143 """
144
145 return split_and_match_files_list(split_commas(paths))
146
147
148def check_follow_imports(choice: str) -> str:

Callers

nothing calls this directly

Calls 2

split_commasFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…