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

Function is_package_source

mypyc/build.py:245–246  ·  view source on GitHub ↗
(source: BuildSource)

Source from the content-addressed store, hash-verified

243
244
245def is_package_source(source: BuildSource) -> bool:
246 return source.path is not None and os.path.split(source.path)[1] == "__init__.py"
247
248
249def generate_c_extension_shim(

Callers 2

build_using_shared_libFunction · 0.85
mypyc_buildFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…