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

Function get_allowlist_entries

mypy/stubtest.py:2321–2332  ·  view source on GitHub ↗
(allowlist_file: str)

Source from the content-addressed store, hash-verified

2319
2320
2321def get_allowlist_entries(allowlist_file: str) -> Iterator[str]:
2322 def strip_comments(s: str) -> str:
2323 try:
2324 return s[: s.index("#")].strip()
2325 except ValueError:
2326 return s.strip()
2327
2328 with open(allowlist_file) as f:
2329 for line in f:
2330 entry = strip_comments(line)
2331 if entry:
2332 yield entry
2333
2334
2335class _Arguments:

Callers 1

test_stubsFunction · 0.85

Calls 1

strip_commentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…