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

Function _style

mypy/stubtest.py:79–82  ·  view source on GitHub ↗

Wrapper around mypy.util for fancy formatting.

(message: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

77
78
79def _style(message: str, **kwargs: Any) -> str:
80 """Wrapper around mypy.util for fancy formatting."""
81 kwargs.setdefault("color", "none")
82 return _formatter.style(message, **kwargs)
83
84
85def _truncate(message: str, length: int) -> str:

Callers 4

get_descriptionMethod · 0.85
test_stubsFunction · 0.85
error_callbackFunction · 0.85
warning_callbackFunction · 0.85

Calls 2

setdefaultMethod · 0.80
styleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…