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

Function is_init_file

mypy/modulefinder.py:754–755  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

752
753
754def is_init_file(path: str) -> bool:
755 return os.path.basename(path) in ("__init__.py", "__init__.pyi")
756
757
758def verify_module(fscache: FileSystemCache, id: str, path: str, prefix: str) -> bool:

Callers 4

verify_moduleFunction · 0.85
highest_init_levelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…