MCPcopy
hub / github.com/python/mypy / split_commas

Function split_commas

mypy/config_parser.py:170–176  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

168
169
170def split_commas(value: str) -> list[str]:
171 # Uses a bit smarter technique to allow last trailing comma
172 # and to remove last `""` item from the split.
173 items = value.split(",")
174 if items and items[-1] == "":
175 items.pop(-1)
176 return items
177
178
179# For most options, the type of the default value set in options.py is

Callers 2

split_and_match_filesFunction · 0.85
config_parser.pyFile · 0.85

Calls 2

splitMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…