MCPcopy Create free account
hub / github.com/python/mypy / parse_mypy_args

Function parse_mypy_args

mypy/test/testpep561.py:170–174  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

168
169
170def parse_mypy_args(line: str) -> list[str]:
171 m = re.match("# flags: (.*)$", line)
172 if not m:
173 return [] # No args; mypy will spit out an error.
174 return m.group(1).split()

Callers 1

test_pep561Function · 0.85

Calls 2

splitMethod · 0.80
groupMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…