Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python/mypy
/ _truncate
Function
_truncate
mypy/stubtest.py:85–88 ·
view source on GitHub ↗
(message: str, length: int)
Source
from the content-addressed store, hash-verified
83
84
85
def
_truncate(message: str, length: int) -> str:
86
if
len(message) > length:
87
return
message[: length - 3] +
"..."
88
return
message
89
90
91
class
StubtestFailure(Exception):
Callers
1
__init__
Method · 0.85
Calls
1
len
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…