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

Function split_pyc_from_py

mypy/stubgen.py:1556–1564  ·  view source on GitHub ↗
(modules: list[StubSource])

Source from the content-addressed store, hash-verified

1554
1555
1556def split_pyc_from_py(modules: list[StubSource]) -> tuple[list[StubSource], list[StubSource]]:
1557 py_modules = []
1558 pyc_modules = []
1559 for mod in modules:
1560 if is_pyc_only(mod.path):
1561 pyc_modules.append(mod)
1562 else:
1563 py_modules.append(mod)
1564 return pyc_modules, py_modules
1565
1566
1567def is_blacklisted_path(path: str) -> bool:

Callers 1

collect_build_targetsFunction · 0.85

Calls 2

is_pyc_onlyFunction · 0.90
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…