Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python/mypy
/ is_pyc_only
Function
is_pyc_only
mypy/moduleinspect.py:42–43 ·
view source on GitHub ↗
(file: str | None)
Source
from the content-addressed store, hash-verified
40
41
42
def
is_pyc_only(file: str | None) -> bool:
43
return
bool(file and file.endswith(
".pyc"
) and not os.path.exists(file[:-1]))
44
45
46
class
InspectError(Exception):
Callers
1
split_pyc_from_py
Function · 0.90
Calls
3
bool
Class · 0.85
exists
Method · 0.80
endswith
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…